From 2175ff80d02405080dd3bfa2b26ea43f50b90125 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Thu, 18 Feb 2010 14:37:21 +0100 Subject: [PATCH] include compressed build log into result packages Signed-off-by: Gordon Hecker --- Changelog | 1 + local/e2build.lua | 9 +++++++++ 2 files changed, 10 insertions(+) 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) -- 2.39.5