Fixes FS#35281

Signed-off-by: Dave Reisner <[email protected]>
---
 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


Reply via email to