[pacman-dev] [PATCH 1/2] Add support for bzr lp URLs in makepkg

Maxime Gauduin alucryd at gmail.com
Mon Apr 8 06:32:37 EDT 2013


From: Alucryd <alucryd at gmail.com>

Signed-off-by: Maxime Gauduin <alucryd at gmail.com>
---
 scripts/makepkg.sh.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index da620a4..d5b9077 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -269,6 +269,9 @@ get_protocol() {
 		# strip leading filename
 		local proto="${1##*::}"
 		printf "%s\n" "${proto%%://*}"
+	elif [[ $1 = *lp:* ]]; then
+		local proto="${1##*::}"
+		printf "%s\n" "${proto%%lp:*}"
 	else
 		printf "%s\n" local
 	fi
-- 
1.8.2



More information about the pacman-dev mailing list