summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-26 10:54:55 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-26 10:55:07 +0100
commit4d5a1b0ae45629af521dfc3d51f54511f658938f (patch)
tree6b33913e227a5c03012e3910741236ae9e92139f /bin
parentc7cbb9183ca2958fefc497ea2e92c8fbad5a6cbe (diff)
downloadjenkins.debian.net-4d5a1b0ae45629af521dfc3d51f54511f658938f.tar.xz
chroot-install: make prepare functions idempotent
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chroot-installation.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh
index 76e6df4e..4fa90188 100755
--- a/bin/chroot-installation.sh
+++ b/bin/chroot-installation.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2012-2014 Holger Levsen <holger@layer-acht.org>
+# Copyright 2012-2015 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2
DEBUG=false
@@ -59,7 +59,7 @@ Debug::pkgProblemResolver "true";
# installation order
Debug::pkgPackageManager "true";
APTEOF
-echo "deb-src $MIRROR $1 main" >> /etc/apt/sources.list
+echo "deb-src $MIRROR $1 main" > /etc/apt/sources.list.d/$1-src.list
apt-get update
set +x
EOF
@@ -113,7 +113,7 @@ prepare_upgrade2() {
APTDPKGFIRST=""
fi
cat >> $CTMPFILE <<-EOF
-echo "deb $MIRROR $1 main" >> /etc/apt/sources.list
+echo "deb $MIRROR $1 main" > /etc/apt/sources.list.d/$1.list
$SCRIPT_HEADER
set -x
apt-get update