Backports got integrated into the main archive
authorGuido Günther <agx@sigxcpu.org>
Tue, 17 Sep 2013 16:33:00 +0000 (18:33 +0200)
committerGuido Günther <agx@sigxcpu.org>
Tue, 17 Sep 2013 16:40:22 +0000 (18:40 +0200)
From wheezy on we can use the main archive

bin/git-pbuilder

index 99164ba..a6ab9e6 100644 (file)
@@ -36,11 +36,6 @@ shell_quote () {
     echo "$1" | sed -e "s/'/'\"'\"'/g" -e "1 s/^/'/" -e "\$ s/\$/'/"
 }
 
-# The URL to the Debian backports repository to add to the chroot
-# configuration when created via this script for a distribution ending in
-# -backports.
-BACKPORTS='http://backports.debian.org/debian-backports'
-
 # Set default BUILDER, DIST, and ARCH based on the name we were invoked as.
 # This allows people to create symlinks like git-pbuilder-squeeze and
 # git-qemubuilder-squeeze-amd64 pointing to git-pbuilder and auto-detecting
@@ -76,6 +71,14 @@ esac
 if expr "$DIST" : '.*-backports$' >/dev/null; then
     DIST=${DIST%-backports}
     EXT="-backports"
+    # The URL to the Debian backports repository to add to the chroot
+    # configuration when created via this script for a distribution ending in
+    # -backports.
+    case $DIST in
+        squeeze|oldstable)
+            BACKPORTS='http://backports.debian.org/debian-backports' ;;
+        *)  BACKPORTS='http://ftp.debian.org/debian' ;;
+    esac
 else
     EXT=
 fi