]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
bug fix when getting a product install in base when the product has no dependency
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 18 Jan 2017 13:47:10 +0000 (14:47 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 18 Jan 2017 13:47:10 +0000 (14:47 +0100)
src/product.py

index a291ed972d7714532932f31fb86fa4cad8815bd2..08c42043f5adc6f7e5732822c0b674555a325ea3 100644 (file)
@@ -415,7 +415,10 @@ def check_config_exists(config, prod_dir, prod_info):
         
         # If there is no dependency, it is the right path
         if len(prod_info.depend)==0:
-            return True, os.path.join(prod_dir, dir_or_file)
+            compile_cfg = src.pyconf.Config(config_file)
+            if len(compile_cfg) == 0:
+                return True, os.path.join(prod_dir, dir_or_file)
+            continue
         
         # check if there is the config described in the file corresponds the 
         # dependencies of the product