summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-14 15:19:46 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-14 15:19:46 +0200
commit3b0c78d2b69e51805a92ed374c8358df64cb4b3e (patch)
treece07944ebd873a8f2645c61cee69e852185447ff
parent9c6b58385034dfac242fd4be28befe253f580926 (diff)
downloadjenkins.debian.net-3b0c78d2b69e51805a92ed374c8358df64cb4b3e.tar.xz
only run apt-get install if they are new packages to be installed
-rwxr-xr-xupdate_jdn.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 17d79823..9322ca48 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