diff options
author | Loïc Minier <lool@dooz.org> | 2010-01-25 12:15:38 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2010-01-25 12:15:38 +0100 |
commit | c32212f1f8c9d14783dd4faac32498148f7d0ea1 (patch) | |
tree | db4ca0fb18fdec20f241f4c8a4b99b7688e40d0d /pbuilder-apt-config | |
parent | 039e4d658e23b6a9af1242d0b3d21bd652f697a1 (diff) | |
download | pbuilder-c32212f1f8c9d14783dd4faac32498148f7d0ea1.tar pbuilder-c32212f1f8c9d14783dd4faac32498148f7d0ea1.tar.gz |
Add support for debian-volatile
Diffstat (limited to 'pbuilder-apt-config')
-rwxr-xr-x | pbuilder-apt-config | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pbuilder-apt-config b/pbuilder-apt-config index 3a042d8..66b4413 100755 --- a/pbuilder-apt-config +++ b/pbuilder-apt-config @@ -67,6 +67,9 @@ guess_vendor_arch_mirror() { ;; esac ;; + volatile) + echo "http://volatile.debian.org/debian-volatile/" + ;; *) die "Unknown mirror for vendor=$vendor" ;; @@ -197,7 +200,8 @@ components="$(echo "$components" | tr , " ")" pockets="$(echo "$pockets" | tr , " ")" if [ -n "$profile" ]; then - base_dist="${profile%%-*}" + base_dist="${profile%%/*}" + base_dist="${base_dist%%-*}" base_vendor="`guess_dist_vendor "$base_dist"`" base_mirror="`guess_vendor_arch_mirror "$base_vendor" "$arch"`" case "$base_vendor" in @@ -207,6 +211,10 @@ if [ -n "$profile" ]; then base_dist="unstable" mirror="$base_mirror" ;; + */volatile) + vendor="volatile" + mirror="`guess_vendor_arch_mirror "$vendor" "$arch"`" + ;; *-backports) vendor="backports.org" mirror="`guess_vendor_arch_mirror "$vendor" "$arch"`" |