From: crouzet Date: Wed, 6 Feb 2019 15:51:19 +0000 (+0100) Subject: sat #8581 : ajout pour chaque produit d'une information sur le tag du projet et de... X-Git-Tag: 5.3.0~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=628fb65ca48b63f4f2f1382428dce11f4430cf4c;p=tools%2Fsat.git sat #8581 : ajout pour chaque produit d'une information sur le tag du projet et de salomeTool --- diff --git a/src/product.py b/src/product.py index f2fe8dd..f18fc81 100644 --- a/src/product.py +++ b/src/product.py @@ -168,6 +168,16 @@ def get_product_config(config, product_name, with_install_dir=True): # Search for the product description in the configuration prod_info = get_product_section(config, product_name, vv, section) + # get salomeTool version + prod_info.sat_version = src.get_salometool_version(config) + + # get the product project git tag, if any + product_project_git_tag = src.system.git_describe(os.path.dirname(prod_info.from_file)) + if product_project_git_tag: + prod_info.sat_project_tag = product_project_git_tag + else: + prod_info.sat_project_tag = "unknown" + # merge opt_depend in depend if prod_info is not None and 'opt_depend' in prod_info: for depend in prod_info.opt_depend: