summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-09-17 18:33:00 +0200
committerGuido Günther <agx@sigxcpu.org>2013-09-17 18:40:22 +0200
commitb494801d7ed3bdd848d8edd60bb1f29806cca23b (patch)
treee9803c9c69b860ada36a56f0e8fa41b08241ff1a /bin
parenta86ccb7d17e4a49df93f02b44cae99182ac4c0ab (diff)
downloadgit-buildpackage-b494801d7ed3bdd848d8edd60bb1f29806cca23b.tar.gz
git-buildpackage-b494801d7ed3bdd848d8edd60bb1f29806cca23b.tar.bz2
git-buildpackage-b494801d7ed3bdd848d8edd60bb1f29806cca23b.zip
Backports got integrated into the main archive
From wheezy on we can use the main archive
Diffstat (limited to 'bin')
-rw-r--r--bin/git-pbuilder13
1 files 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