From 132fd08c65f480bee15f79b80f04bf67b04b9795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Mon, 25 Jan 2010 17:38:34 +0100 Subject: Add support for oldstable and archive.debian.org --- pbuilder-apt-config | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'pbuilder-apt-config') diff --git a/pbuilder-apt-config b/pbuilder-apt-config index 307e0ad..b464b3e 100755 --- a/pbuilder-apt-config +++ b/pbuilder-apt-config @@ -8,7 +8,6 @@ self="$(basename "$0")" # TODO # - support setting --mirror-map (for --profile) # - Debian security entries? -# - oldstable log() { echo "$@" >&2 @@ -35,9 +34,12 @@ guess_dist_arch_archive() { local arch="$2" case "$dist" in - etch|lenny|squeeze|sid|testing|unstable|experimental) + etch|lenny|squeeze|sid|oldstable|stable|testing|unstable|experimental) echo "debian" ;; + buzz|rex|bo|hamm|slink|potato|woody|sarge|etch|lenny|squeeze) + echo "debian-archive" + ;; hardy|intrepid|jaunty|karmic|lucid) case "$arch" in amd64|i386) @@ -67,6 +69,9 @@ get_archive_url() { debian) echo "http://ftp.us.debian.org/debian/" ;; + debian-archive) + echo "http://archive.debian.org/debian/" + ;; ubuntu) echo "http://archive.ubuntu.com/ubuntu/" ;; @@ -133,6 +138,9 @@ set_debootstrap_suite() { stable) debootstrap_suite="lenny" ;; + oldstable) + debootstrap_suite="etch" + ;; *) debootstrap_suite="$suite" ;; @@ -236,7 +244,7 @@ if [ -n "$profile" ]; then base_archive="`guess_dist_arch_archive "$base_dist" "$arch"`" base_mirror="`get_archive_url "$base_archive"`" case "$base_archive" in - debian) + debian|debian-archive) case "$profile" in experimental) base_dist="unstable" -- cgit v1.2.3