diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-12-26 15:59:46 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-12-26 15:59:46 +0100 |
commit | b4b0d5dad054e7c499eb853e8df31567bfc799ce (patch) | |
tree | cd0f653af53c09bfdd86ecc9a4dbb0c0306e5528 | |
parent | e8c41a9485f464123eff10b8f57459ecc32df1e4 (diff) | |
download | jenkins.debian.net-b4b0d5dad054e7c499eb853e8df31567bfc799ce.tar.xz |
copy new sources.list before using it
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | update_jdn.sh | 2 |
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 |