diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/git-pbuilder | 20 |
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 |