diff options
author | Loïc Minier <lool@dooz.org> | 2010-01-25 17:38:34 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2010-01-25 17:39:32 +0100 |
commit | 132fd08c65f480bee15f79b80f04bf67b04b9795 (patch) | |
tree | 713cca7b2486834531e0df9c1eaf2a32e9fade1f /pbuilder-apt-config | |
parent | c31448846df8326741195e0aaf1659b94c95aade (diff) | |
download | pbuilder-132fd08c65f480bee15f79b80f04bf67b04b9795.tar pbuilder-132fd08c65f480bee15f79b80f04bf67b04b9795.tar.gz |
Add support for oldstable and archive.debian.org
Diffstat (limited to 'pbuilder-apt-config')
-rwxr-xr-x | pbuilder-apt-config | 14 |
1 files changed, 11 insertions, 3 deletions
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" |