From 628fb65ca48b63f4f2f1382428dce11f4430cf4c Mon Sep 17 00:00:00 2001 From: crouzet Date: Wed, 6 Feb 2019 16:51:19 +0100 Subject: [PATCH] sat #8581 : ajout pour chaque produit d'une information sur le tag du projet et de salomeTool --- src/product.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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: -- 2.39.2