From: crouzet Date: Tue, 22 Mar 2022 10:47:58 +0000 (+0100) Subject: bug : evite l'insertion multiple des produits optionnels dans le champ depend X-Git-Tag: V9_9_0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bcea5656104dd29c6bf6f3c982a7ed79055d92fc;p=tools%2Fsat.git bug : evite l'insertion multiple des produits optionnels dans le champ depend --- 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,'')