From b494801d7ed3bdd848d8edd60bb1f29806cca23b Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 17 Sep 2013 18:33:00 +0200 Subject: Backports got integrated into the main archive From wheezy on we can use the main archive --- bin/git-pbuilder | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/git-pbuilder b/bin/git-pbuilder index 99164baf..a6ab9e62 100644 --- a/bin/git-pbuilder +++ b/bin/git-pbuilder @@ -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 -- cgit v1.2.3