From b4b0d5dad054e7c499eb853e8df31567bfc799ce Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 26 Dec 2016 15:59:46 +0100 Subject: copy new sources.list before using it Signed-off-by: Holger Levsen --- update_jdn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2