# current product
debug = 'no'
dev = 'no'
+ verbose = 'no'
base = 'maybe'
section = None
if isinstance(version, src.pyconf.Mapping):
if 'debug' in dic_version:
debug = dic_version.debug
+ # Get the verbose if any
+ if 'verbose' in dic_version:
+ verbose = dic_version.verbose
+
# Get the dev if any
if 'dev' in dic_version:
dev = dic_version.dev
# Set the debug, dev and version keys
prod_info.debug = debug
+ prod_info.verbose = verbose
prod_info.dev = dev
prod_info.version = version
DBG.tofix(msg, config.PATHS.ARCHIVEPATH) #avoid 2 messages in compile
prod_info.archive_info.archive_name = arch_name #without path
# raise src.SatException(msg) #may be a warning, continue #8646
- prod_info.archive_info.archive_name = arch_path
+ else:
+ prod_info.archive_info.archive_name = arch_path
+
# If the product compiles with a script, check the script existence
# and if it is executable
return False
return True
-def product_is_sample(product_info):
- """Know if a product has the sample type
-
- :param product_info Config: The configuration specific to
- the product
- :return: True if the product has the sample type, else False
- :rtype: boolean
- """
- if 'type' in product_info:
- ptype = product_info.type
- return ptype.lower() == 'sample'
- else:
- return False
-
def product_is_salome(product_info):
"""Know if a product is a SALOME module
debug = product_info.debug
return debug.lower() == 'yes'
+def product_is_verbose(product_info):
+ """Know if a product is in verbose mode
+
+ :param product_info Config: The configuration specific to
+ the product
+ :return: True if the product is in verbose mode, else False
+ :rtype: boolean
+ """
+ verbose = product_info.verbose
+ return verbose.lower() == 'yes'
+
def product_is_autotools(product_info):
"""Know if a product is compiled using the autotools