From: Serge Rehbinder Date: Wed, 18 Jan 2017 13:47:10 +0000 (+0100) Subject: bug fix when getting a product install in base when the product has no dependency X-Git-Tag: 5.0.0a1~38^2~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9211e0e9a82c5c9b8f28717e735116c8e2721f8c;p=tools%2Fsat.git bug fix when getting a product install in base when the product has no dependency --- diff --git a/src/product.py b/src/product.py index a291ed9..08c4204 100644 --- a/src/product.py +++ b/src/product.py @@ -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