[pacman-dev] [PATCH] Fix dest dir when using lp: bzr URLs in the source array

Maxime Gauduin alucryd at gmail.com
Tue Apr 9 06:58:33 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 0ac4975..69001d3 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -245,6 +245,9 @@ get_filename() {
 			filename=${netfile%%#*}
 			filename=${filename%/}
 			filename=${filename##*/}
+			if [[ $proto = bzr* ]]; then
+				filename=${filename#*lp:}
+			fi
 			if [[ $proto = git* ]]; then
 				filename=${filename%%.git*}
 			fi
-- 
1.8.2



More information about the pacman-dev mailing list