aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-apt-config
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-30 11:31:08 +0100
committerLoïc Minier <lool@dooz.org>2010-01-30 11:31:08 +0100
commit804679d1eda4ee1a8f95e70687435f3750fc7190 (patch)
tree3f79eeb547ecff24e64bffd0d209c5811f152e50 /pbuilder-apt-config
parent5a595e32ed35eb59c6fe929b4769059bc9e59093 (diff)
downloadpbuilder-804679d1eda4ee1a8f95e70687435f3750fc7190.tar
pbuilder-804679d1eda4ee1a8f95e70687435f3750fc7190.tar.gz
Add Launchpad PPA support with ppa:* archives
Diffstat (limited to 'pbuilder-apt-config')
-rwxr-xr-xpbuilder-apt-config12
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/"
;;