[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible: only gzip $RBUILDLOG if it exists

Holger Levsen holger at moszumanska.debian.org
Mon Oct 5 13:10:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit a537de8c2cff3e95234da7436de8c3a7a71c27b8
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Oct 5 15:09:11 2015 +0200

    reproducible: only gzip $RBUILDLOG if it exists
---
 bin/reproducible_build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 02f97ab..3d97e3d 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -79,7 +79,7 @@ cleanup_all() {
 	elif [ ! -z "$NOTIFY" ] && [ $SAVE_ARTIFACTS -eq 0 ] ; then
 		irc_message "$REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE done: $STATUS"
 	fi
-	gzip -9fvn $RBUILDLOG
+	[ ! -f $RBUILDLOG ] || gzip -9fvn $RBUILDLOG
 	if [ "$MODE" = "master" ] ; then
 		# XXX quite ugly: this is just needed to update the sizes of the
 		# compressed files in the html. It's cheap and quite safe so, *shrugs*...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list