summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-12-26 15:59:46 +0100
committerHolger Levsen <holger@layer-acht.org>2016-12-26 15:59:46 +0100
commitb4b0d5dad054e7c499eb853e8df31567bfc799ce (patch)
treecd0f653af53c09bfdd86ecc9a4dbb0c0306e5528
parente8c41a9485f464123eff10b8f57459ecc32df1e4 (diff)
downloadjenkins.debian.net-b4b0d5dad054e7c499eb853e8df31567bfc799ce.tar.xz
copy new sources.list before using it
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xupdate_jdn.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 068b3cfe..bd47cf15 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