Commit 32b9fe26 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Archlinux: try to be less error prone when ending schroot sessions



Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent e2ce7d08
......@@ -172,6 +172,7 @@ first_build() {
if [ $PRESULT -eq 124 ] ; then
echo "$(date -u) - makepkg was killed by timeout after ${TIMEOUT}h." | tee -a $LOG
fi
set +e
schroot --end-session -c $SESSION | tee -a $LOG
PRESULT=${PIPESTATUS[0]}
if [ $PRESULT -ne 0 ] ; then
......@@ -196,6 +197,7 @@ first_build() {
fi
fi
if ! "$DEBUG" ; then set +x ; fi
set -e
}
second_build() {
......@@ -259,6 +261,7 @@ second_build() {
if [ $PRESULT -eq 124 ] ; then
echo "$(date -u) - makepkg was killed by timeout after ${TIMEOUT}h." | tee -a $LOG
fi
set +e
schroot --end-session -c $SESSION | tee -a $LOG
PRESULT=${PIPESTATUS[0]}
if [ $PRESULT -ne 0 ] ; then
......@@ -277,6 +280,7 @@ second_build() {
fi
fi
if ! "$DEBUG" ; then set +x ; fi
set -e
}
remote_build() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment