From fb41a34d81d0f0c5911d838002d9af10e89a44c8 Mon Sep 17 00:00:00 2001 From: crouzet Date: Thu, 31 Jan 2019 15:54:21 +0100 Subject: [PATCH] petit correctif bug --- src/product.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/product.py b/src/product.py index f8fcb93..11ab001 100644 --- a/src/product.py +++ b/src/product.py @@ -63,7 +63,6 @@ def get_product_config(config, product_name, with_install_dir=True): # if no version, then take the default one defined in the application if isinstance(version, bool) or isinstance(version, str): # in this case tag is mandatory, not debug, verbose, dev - version = config.APPLICATION.tag if 'debug' in config.APPLICATION: debug = config.APPLICATION.debug if 'verbose' in config.APPLICATION: @@ -73,6 +72,10 @@ def get_product_config(config, product_name, with_install_dir=True): if 'hpc' in config.APPLICATION: hpc = config.APPLICATION.hpc + # special case for which only the product name is mentionned + if isinstance(version, bool): + version = config.APPLICATION.tag + if isinstance(version, src.pyconf.Mapping): dic_version = version # Get the version/tag -- 2.39.2