summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-02-11 09:14:56 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-02-11 09:14:56 +0100
commit4ea489ad854930e94dae27b88cf60f62750a707b (patch)
tree4046b7a4910c8957a0e8772d2c182ad40b8fb216
parent0346db0ff79254e720d2da84ba60172fce8d1b76 (diff)
downloaddevtools-4ea489ad854930e94dae27b88cf60f62750a707b.tar.gz
devtools-4ea489ad854930e94dae27b88cf60f62750a707b.tar.xz
Move build and package logs to WORKDIR, otherwise it is lost
-rwxr-xr-xmakechrootpkg4
1 files changed, 4 insertions, 0 deletions
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"