[arch-dev-public] [PATCH] Move build logs to WORKDIR, otherwise they're lost

Francois Charette francois at archlinux.org
Wed Feb 10 09:49:35 EST 2010


---
 makechrootpkg |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/makechrootpkg b/makechrootpkg
index e48db6f..80b5e16 100755
--- a/makechrootpkg
+++ b/makechrootpkg
@@ -254,6 +254,11 @@ if mkarchroot -r "/chrootbuild" "$uniondir"; then
             mv "$f" "${WORKDIR}"
         fi
     done
+
+    if [ -f $uniondir/build/*-build.log ]; then
+        echo "Moving build log(s) to ${WORKDIR}"
+        mv $uniondir/build/*-{build,package}.log* "${WORKDIR}"
+    fi
 else
     #just in case. We returned 1, make sure we fail
     touch "${chrootdir}/union/build/BUILD_FAILED"
-- 
1.6.6.1



More information about the arch-dev-public mailing list