[pacman-dev] [PATCH] makepkg: assign fragment for bzr revision

Dave Reisner dreisner at archlinux.org
Tue May 14 15:33:28 EDT 2013


Fixes FS#35281

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
 scripts/makepkg.sh.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index b85b87e..88f3e2a 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -452,7 +452,8 @@ download_bzr() {
 	local displaylocation="$url"
 	local revision=('-r-1')
 
-	if [[ -n $fragment ]]; then
+	if [[ $netfile = *\#* ]]; then
+		local fragment=${netfile#*#}
 		case ${fragment%%=*} in
 			revision)
 				revision=("-r${fragment##*=}")
-- 
1.8.2.3



More information about the pacman-dev mailing list