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.li...@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

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to