[Qa-jenkins-scm] [jenkins.debian.net] 01/01: only run apt-get install if they are new packages to be installed

Holger Levsen holger at moszumanska.debian.org
Thu May 14 13:20:10 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 3b0c78d2b69e51805a92ed374c8358df64cb4b3e
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu May 14 15:19:46 2015 +0200

    only run apt-get install if they are new packages to be installed
---
 update_jdn.sh | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/update_jdn.sh b/update_jdn.sh
index 17d7982..9322ca4 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -80,7 +80,9 @@ fi
 #
 # install packages we need
 #
-sudo apt-get install	apache2 \
+if [ ./$0 -nt $STAMP ] || [ -f $STAMP ] ; then
+	sudo apt-get install \
+			apache2 \
 			apt-file \
 			apt-listchanges \
 			bash-completion \
@@ -163,7 +165,7 @@ sudo apt-get install	apache2 \
 			xvfb \
 			zutils
 
-sudo apt-get install -t wheezy-backports \
+	sudo apt-get install -t wheezy-backports \
 			binfmt-support \
 			cucumber \
 			debootstrap \
@@ -184,10 +186,13 @@ sudo apt-get install -t wheezy-backports \
 			openbios-ppc \
 			openbios-sparc
 
-explain "Packages installed."
+	explain "Packages installed."
 
-echo "Also needs python-arpy from jessie..."
-echo "Also needs ovmf from jessie..."
+	echo "Also needs python-arpy from jessie..."
+	echo "Also needs ovmf from jessie..."
+else
+	echo "No new packages to be installed."
+fi
 
 #
 # deploy package configuration in /etc

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