From 804679d1eda4ee1a8f95e70687435f3750fc7190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Sat, 30 Jan 2010 11:31:08 +0100 Subject: Add Launchpad PPA support with ppa:* archives --- pbuilder-apt-config | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'pbuilder-apt-config') 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/" ;; -- cgit v1.2.3