makepkg: do not strip bzr+ from bzr+ssh urls

bzr does not recognize bare ssh:// urls.

Fixes FS#41811

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andrew Gregory 2014-09-23 14:04:47 -04:00 committed by Allan McRae
parent db2562113b
commit 6949012590
1 changed files with 3 additions and 1 deletions

View File

@ -446,7 +446,9 @@ download_bzr() {
local netfile=$1
local url=$(get_url "$netfile")
url=${url##*bzr+}
if [[ $url != bzr+ssh* ]]; then
url=${url##*bzr+}
fi
url=${url%%#*}
local repo=$(get_filename "$netfile")