[Qa-jenkins-scm] [jenkins.debian.net] 01/01: only run apt-get update if update_jdn.sh has changed, doh

Holger Levsen holger at layer-acht.org
Mon Jun 20 21:53:10 UTC 2016


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 f7af628924eb01d9bd221232a38fa37838d584b0
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Jun 20 23:52:34 2016 +0200

    only run apt-get update if update_jdn.sh has changed, doh
---
 update_jdn.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update_jdn.sh b/update_jdn.sh
index d1b85e2..33aced1 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -372,7 +372,7 @@ if [ -f /etc/debian_version ] ; then
 		else
 			MASTERDEBS=""
 		fi
-		sudo apt-get update
+		$UP2DATE || sudo apt-get update
 		$UP2DATE || sudo apt-get install $DEBS $MASTERDEBS
 		$UP2DATE || sudo apt-get install -t jessie-backports \
 				pbuilder lintian || echo "this should only fail on the first install"

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