diff options
Diffstat (limited to 'pbuilder-apt-config')
-rwxr-xr-x | pbuilder-apt-config | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pbuilder-apt-config b/pbuilder-apt-config index affed8a..74b5a55 100755 --- a/pbuilder-apt-config +++ b/pbuilder-apt-config @@ -61,6 +61,7 @@ guess_dist_arch_archive() { get_archive_url() { local archive="$1" + local people_ppa case "$archive" in backports.org) @@ -72,6 +73,17 @@ get_archive_url() { debian-archive) echo "http://archive.debian.org/debian/" ;; + ppa:*) + people_ppa="${archive#ppa:}" + case "$people_ppa" in + */*) + : + ;; + *) + people_ppa="$people_ppa/ppa" + esac + echo "http://ppa.launchpad.net/$people_ppa/ubuntu/" + ;; ubuntu) echo "http://archive.ubuntu.com/ubuntu/" ;; |