Salome HOME
improve a commentary
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Mon, 4 Apr 2016 13:06:03 +0000 (15:06 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Mon, 4 Apr 2016 13:06:03 +0000 (15:06 +0200)
commands/source.py
src/system.py

index 70d756435ececd679ef9381683e62b7a295ccf12..056f2c823079df8b8338295b8903a97252216039 100644 (file)
@@ -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
index 4c53125bb37a3fb33a4a648c1898d02867f465b6..1969bacaa22c914738a333cadc5cfb8607252b38 100644 (file)
@@ -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)