[yocto] [[AUH] 4/4] utils/bitbake.py: Preserve runs in error log.

Aníbal Limón anibal.limon at linux.intel.com
Fri Dec 11 13:15:05 PST 2015


When AUH is trying to do upgrades every time that fails the error
log is overwrite so now append the errors this provides better
complete error info to the Maintainer.

Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
 modules/utils/bitbake.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/utils/bitbake.py b/modules/utils/bitbake.py
index cdbce2b..55e69a4 100644
--- a/modules/utils/bitbake.py
+++ b/modules/utils/bitbake.py
@@ -68,7 +68,7 @@ class Bitbake(object):
             D("%s returned:\n%s" % (cmd, e.__str__()))
 
             if self.log_dir is not None and os.path.exists(self.log_dir):
-                with open(os.path.join(self.log_dir, BITBAKE_ERROR_LOG), "w+") as log:
+                with open(os.path.join(self.log_dir, BITBAKE_ERROR_LOG), "a+") as log:
                     log.write(e.stdout)
 
             raise Error("\'" + cmd + "\' failed", e.stdout, e.stderr)
-- 
2.1.4




More information about the yocto mailing list