From 89f815db3c210ded81158622700dfed3ccad658f Mon Sep 17 00:00:00 2001 From: Christian Van Wambeke Date: Wed, 11 Apr 2018 10:42:58 +0200 Subject: [PATCH] fix archive not found in product --- src/debug.py | 4 ++++ src/product.py | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/debug.py b/src/debug.py index e1ab251..1bc2618 100644 --- a/src/debug.py +++ b/src/debug.py @@ -45,6 +45,10 @@ to set show message temporary as development phase, only in a method: to set a message for future fix, as temporary problem to not forget: DBG.tofix("aTitle", aVariable, True/False) #True/False in production shown, or not + +in command line interface you could redirect stderr to file 'myDebug.log': +>> sat compile ... 2> myDebug.log # only stderr +>> sat compile ... &> myDebug.log # stdout and stderr """ import os diff --git a/src/product.py b/src/product.py index 5eb2079..fba1c42 100644 --- a/src/product.py +++ b/src/product.py @@ -196,7 +196,9 @@ Please add a section in it.""") % {"1" : vv, "2" : prod_pyconf_path} 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 -- 2.30.2