From 96f2d4485beb23ea58cbeced0b357e82ea5544bb Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Mon, 4 Apr 2016 15:06:03 +0200 Subject: [PATCH] improve a commentary --- commands/source.py | 2 +- src/system.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/commands/source.py b/commands/source.py index 70d7564..056f2c8 100644 --- a/commands/source.py +++ b/commands/source.py @@ -30,7 +30,7 @@ parser.add_option('p', 'product', 'list2', 'products', parser.add_option('', 'no_sample', 'boolean', 'no_sample', _("do not get sources from sample products.")) parser.add_option('f', 'force', 'boolean', 'force', - _("force to get the sources of the products in development mode.")) + _("force to remove the sources before getting them (in development mode only).")) def get_source_for_dev(config, product_info, source_dir, force, logger, pad): '''The method called if the product is in development mode diff --git a/src/system.py b/src/system.py index 4c53125..1969bac 100644 --- a/src/system.py +++ b/src/system.py @@ -72,7 +72,10 @@ def git_extract(from_what, tag, where, logger): where_git = os.path.join( str(where), ".git" ) command = "rmdir %(where)s && git clone %(remote)s %(where)s && " + \ "git --git-dir=%(where_git)s --work-tree=%(where)s checkout %(tag)s" - command = command % { 'remote': from_what, 'tag': tag, 'where': str(where), 'where_git': where_git } + command = command % {'remote': from_what, + 'tag': tag, + 'where': str(where), + 'where_git': where_git } logger.write(command + "\n", 5) -- 2.39.2