[Qa-jenkins-scm] [jenkins.debian.net] 01/01: copy new sources.list before using it
Holger Levsen
holger at layer-acht.org
Mon Dec 26 15:00:43 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 b4b0d5dad054e7c499eb853e8df31567bfc799ce
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Dec 26 15:59:46 2016 +0100
copy new sources.list before using it
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
update_jdn.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/update_jdn.sh b/update_jdn.sh
index 068b3cf..bd47cf1 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -479,7 +479,7 @@ if [ -f /etc/debian_version ] ; then
else
MASTERDEBS=""
fi
- $UP2DATE || sudo apt-get update
+ $UP2DATE || ( sudo cp --preserve=mode,timestamps -r hosts/$HOSTNAME/etc/apt/sources.list /etc/apt ; sudo apt-get update )
$UP2DATE || sudo apt-get install $DEBS $MASTERDEBS
case $HOSTNAME in
codethink*) $UP2DATE || sudo apt-get install -t jessie-backports pbuilder
--
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