From 9211e0e9a82c5c9b8f28717e735116c8e2721f8c Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Wed, 18 Jan 2017 14:47:10 +0100 Subject: [PATCH] bug fix when getting a product install in base when the product has no dependency --- src/product.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2