From: Gordon Hecker Date: Thu, 18 Feb 2010 13:37:21 +0000 (+0100) Subject: include compressed build log into result packages X-Git-Tag: e2factory-2.3.4pre2~9 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=2175ff80d02405080dd3bfa2b26ea43f50b90125;p=e2factory.git include compressed build log into result packages Signed-off-by: Gordon Hecker --- diff --git a/Changelog b/Changelog index dace8d9..e8738c0 100644 --- 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 diff --git a/local/e2build.lua b/local/e2build.lua index e1b6020..8f77ea2 100644 --- a/local/e2build.lua +++ b/local/e2build.lua @@ -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)