From bcea5656104dd29c6bf6f3c982a7ed79055d92fc Mon Sep 17 00:00:00 2001 From: crouzet Date: Tue, 22 Mar 2022 11:47:58 +0100 Subject: [PATCH] bug : evite l'insertion multiple des produits optionnels dans le champ depend --- src/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/product.py b/src/product.py index 290d382..0413d21 100644 --- a/src/product.py +++ b/src/product.py @@ -178,7 +178,7 @@ def get_product_config(config, product_name, with_install_dir=True): # merge opt_depend in depend if prod_info is not None and 'opt_depend' in prod_info: for depend in prod_info.opt_depend: - if depend in config.APPLICATION.products: + if (depend in config.APPLICATION.products) and (depend not in prod_info.depend) : prod_info.depend.append(depend,'') -- 2.30.2