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

Holger Levsen holger at moszumanska.debian.org
Thu May 14 13:24:41 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 f1c12a25cbd97a9a0a6e82a221462e9b992e521c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu May 14 15:24:22 2015 +0200

    fixup: only run apt-get install if they are new packages to be installed
---
 update_jdn.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/update_jdn.sh b/update_jdn.sh
index 9322ca4..a5f18e0 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -80,7 +80,7 @@ fi
 #
 # install packages we need
 #
-if [ ./$0 -nt $STAMP ] || [ -f $STAMP ] ; then
+if [ ./$0 -nt $STAMP ] || [ ! -f $STAMP ] ; then
 	sudo apt-get install \
 			apache2 \
 			apt-file \
@@ -330,7 +330,7 @@ cd $BASEDIR
 KGB_SECRETS="/srv/jenkins/kgb/secrets.yml"
 if [ -f "$KGB_SECRETS" ] && [ $(stat -c "%a:%U:%G" "$KGB_SECRETS") = "640:jenkins-adm:jenkins-adm" ] ; then
     # the last condition is to assure the files are owned by the right user/team
-    if [ "$KGB_SECRETS" -nt $STAMP ] ; then
+    if [ "$KGB_SECRETS" -nt $STAMP ] || [ ! -f $STAMP ] ; then
         sudo -u jenkins-adm "./deploy_kgb.py"
     else
         echo "kgb-client configuration unchanged, nothing to do."

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