From 4ea489ad854930e94dae27b88cf60f62750a707b Mon Sep 17 00:00:00 2001
From: Pierre Schmitz <pierre@archlinux.de>
Date: Thu, 11 Feb 2010 09:14:56 +0100
Subject: Move build and package logs to WORKDIR, otherwise it is lost

---
 makechrootpkg | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'makechrootpkg')

diff --git a/makechrootpkg b/makechrootpkg
index e48db6f..9dcd1b1 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -254,6 +254,10 @@ if mkarchroot -r "/chrootbuild" "$uniondir"; then
             mv "$f" "${WORKDIR}"
         fi
     done
+
+    for l in "${uniondir}"/build/*-{build,package}.log; do
+        [ -f "$l" ] && mv "$l" "${WORKDIR}"
+    done
 else
     #just in case. We returned 1, make sure we fail
     touch "${chrootdir}/union/build/BUILD_FAILED"
-- 
cgit v1.2.3-54-g00ecf