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

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

parent dc7f9baf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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…