]> git.e2factory.org Git - e2factory.git/commitdiff
include compressed build log into result packages
authorGordon Hecker <gh@emlix.com>
Thu, 18 Feb 2010 13:37:21 +0000 (14:37 +0100)
committerGordon Hecker <gh@emlix.com>
Thu, 18 Feb 2010 14:13:00 +0000 (15:13 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
Changelog
local/e2build.lua

index dace8d94d69c0ffd5e4690400ee032e7a7a569a5..e8738c0495bfc74163ceac426fba9512ca7a403c 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,5 @@
 NEXT:
+ * compressed build log is stored within the result packages
 
 e2factory-2.3.4pre1
  * a plugin interface was introduced. Local code is capable of loading
index e1b60201a1d2fa6969652fa0e8ae47b105c4f0a7..8f77ea2e7137742ecfebe50c9f3b1f19963574f5 100644 (file)
@@ -745,6 +745,15 @@ function store_result(info, r, return_flags)
   if not rc then
     return false, e:cat(re)
   end
+  -- include compressed build logfile into the result tarball
+  rc, re = e2lib.cp(res.build_config.buildlog, "build.log")
+  if not rc then
+    return false, e:cat(re)
+  end
+  rc, re = e2lib.gzip("build.log")
+  if not rc then
+    return false, e:cat(re)
+  end
   rc, re = e2lib.chdir("..")
   if not rc then
     return false, e:cat(re)