aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-05-22 12:51:39 +0200
committerGuido Günther <agx@sigxcpu.org>2015-05-22 13:19:11 +0200
commit7a0b9dfe3253c2a8a3c1085f35c7d86742d3c521 (patch)
tree42cea5a99d43c1f746a71bfb56ab8a8f8802e627 /bin
parent236d9f5a2def7bf8388209ae23a1a52e406f241f (diff)
git-pbuilder: Support creation of chroots for LTS
Diffstat (limited to 'bin')
-rw-r--r--bin/git-pbuilder20
1 files changed, 19 insertions, 1 deletions
diff --git a/bin/git-pbuilder b/bin/git-pbuilder
index a9104d7a..3f0930da 100644
--- a/bin/git-pbuilder
+++ b/bin/git-pbuilder
@@ -85,6 +85,14 @@ if expr "$DIST" : '.*-backports$' >/dev/null; then
BACKPORTS='http://ftp.debian.org/debian'
;;
esac
+elif expr "$DIST" : '.*-lts$' >/dev/null; then
+ DIST=${DIST%-lts}
+ EXT="-lts"
+
+ # The URL to the Debian LTS repository to add to the chroot
+ # configuration when created via this script for a distribution ending in
+ # -lts.
+ LTS='http://ftp.debian.org/debian'
else
EXT=
fi
@@ -227,6 +235,10 @@ update|create|login)
OTHERMIRROR="deb $BACKPORTS $DIST$EXT main"
sudo "$BUILDER" --"$action" --distribution "$DIST" \
--othermirror "$OTHERMIRROR" "${OPTIONS[@]}" "$@"
+ elif [ "$EXT" = '-lts' ] ; then
+ OTHERMIRROR="deb $LTS $DIST$EXT main"
+ sudo "$BUILDER" --"$action" --distribution "$DIST" \
+ --othermirror "$OTHERMIRROR" "${OPTIONS[@]}" "$@"
else
sudo "$BUILDER" --"$action" --distribution "$DIST" \
"${OPTIONS[@]}" "$@"
@@ -385,7 +397,13 @@ B<--othermirror> parameter to the builder:
deb http://backports.debian.org/debian-backports $DIST main
The first will be used for most distributions, and the second for
-C<squeeze-backports> or C<oldstable-backports>.
+C<squeeze-backports> or C<oldstable-backports>. If the distribution ends in
+C<-lts>, the following will be added as an B<--othermirror> parameter to the
+builder:
+
+ deb http://ftp.debian.org/debian $DIST main
+
+to support building for Long Term Support releases.
Any additional arguments to B<git-pbuilder> are passed along to the
builder. Due to how B<sudo> works, invoking the builder with an action