summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-02-27 11:33:34 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2012-02-27 11:33:34 +0100
commit01a0968c9772b99e6fc18e1715df4531aff59aeb (patch)
treee8ca44004e91286cf10e82002ada28368585f46a
parenta4ee7762e67ca1124834720327997f80ae63312c (diff)
downloadkanotix-01a0968c9772b99e6fc18e1715df4531aff59aeb.zip
kanotix-01a0968c9772b99e6fc18e1715df4531aff59aeb.tar.gz
removed hardcoded "squeeze" in sources.list
-rwxr-xr-xconfig/chroot_local-hooks/00-sources.list5
-rw-r--r--config/chroot_local-includes/etc/apt/sources.list8
2 files changed, 9 insertions, 4 deletions
diff --git a/config/chroot_local-hooks/00-sources.list b/config/chroot_local-hooks/00-sources.list
new file mode 100755
index 0000000..173258f
--- /dev/null
+++ b/config/chroot_local-hooks/00-sources.list
@@ -0,0 +1,5 @@
+#!/bin/sh
+[ -f /root/build.conf ] && . /root/build.conf
+
+sed -e "s|@DISTRIBUTION@|${LB_DISTRIBUTION}|g" /etc/apt/sources.list
+
diff --git a/config/chroot_local-includes/etc/apt/sources.list b/config/chroot_local-includes/etc/apt/sources.list
index f4d8f57..be4a27a 100644
--- a/config/chroot_local-includes/etc/apt/sources.list
+++ b/config/chroot_local-includes/etc/apt/sources.list
@@ -3,10 +3,10 @@
# CDROMs are managed through the apt-cdrom tool.
# Debian Squeeze
-deb http://ftp.de.debian.org/debian squeeze main contrib non-free
-deb-src http://ftp.de.debian.org/debian squeeze main contrib non-free
+deb http://ftp.de.debian.org/debian @DISTRIBUTION@ main contrib non-free
+deb-src http://ftp.de.debian.org/debian @DISTRIBUTION@ main contrib non-free
# Debian Squeeze Updates
-deb http://security.debian.org squeeze/updates main contrib non-free
-deb-src http://security.debian.org squeeze/updates main contrib non-free
+deb http://security.debian.org @DISTRIBUTION@/updates main contrib non-free
+deb-src http://security.debian.org @DISTRIBUTION@/updates main contrib non-free