Commit 9913493c authored by Holger Levsen's avatar Holger Levsen

reproducible Archlinux: delete 1st builds artifacts if the 2nd build fails (=fix ftbfs detection)

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent dc7f9baf
......@@ -430,6 +430,9 @@ if [ ! -z "$(ls $TMPDIR/b1/$SRCPACKAGE/*.pkg.tar.xz 2>/dev/null|| true)" ] ; the
DIFFOSCOPE="$(schroot --directory /tmp -c chroot:jenkins-reproducible-${DBDSUITE}-diffoscope diffoscope -- --version 2>&1)"
echo "$(date -u) - Running $DIFFOSCOPE now..."
call_diffoscope $SRCPACKAGE $ARTIFACT
elif [ -f $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT ] || [ -f $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT ] ; then
# one of the two builds failed... delete the other one
( rm $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT || rm $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT ) 2>/dev/null
else
# some packages define the package version based on the build date
# so our two builds end up with different package versions…
......
Markdown is supported
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