From 0d249949345e69fc1728df236569d1153582244c Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Tue, 23 Sep 2014 14:04:48 -0400 Subject: makepkg: only strip vcs prefixes from front of url Referenced by FS#41811 Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/makepkg.sh.in') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 3b9702e3..6acd9f5e 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -447,7 +447,7 @@ download_bzr() { local url=$(get_url "$netfile") if [[ $url != bzr+ssh* ]]; then - url=${url##*bzr+} + url=${url#bzr+} fi url=${url%%#*} @@ -545,7 +545,7 @@ download_git() { local repo=$(get_filename "$netfile") local url=$(get_url "$netfile") - url=${url##*git+} + url=${url#git+} url=${url%%#*} if [[ ! -d "$dir" ]] || dir_is_empty "$dir" ; then @@ -643,7 +643,7 @@ download_hg() { local repo=$(get_filename "$netfile") local url=$(get_url "$netfile") - url=${url##*hg+} + url=${url#hg+} url=${url%%#*} if [[ ! -d "$dir" ]] || dir_is_empty "$dir" ; then @@ -724,7 +724,7 @@ download_svn() { local url=$(get_url "$netfile") if [[ $url != svn+ssh* ]]; then - url=${url##*svn+} + url=${url#svn+} fi url=${url%%#*} -- cgit v1.2.3-70-g09d2