Move build and package logs to WORKDIR, otherwise it is lost

This commit is contained in:
Pierre Schmitz 2010-02-11 09:14:56 +01:00
parent 0346db0ff7
commit 4ea489ad85
1 changed files with 4 additions and 0 deletions

View File

@ -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"