summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-09-23 14:04:48 -0400
committerAllan McRae <allan@archlinux.org>2014-11-17 13:02:12 +1000
commit0d249949345e69fc1728df236569d1153582244c (patch)
tree5b7cc903e378316de3b662a9ff65078a85662fbf
parent694901259031c19178cbfaa7087a2950d2dde477 (diff)
downloadpacman-0d249949345e69fc1728df236569d1153582244c.tar.xz
makepkg: only strip vcs prefixes from front of url
Referenced by FS#41811 Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in8
1 files changed, 4 insertions, 4 deletions
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%%#*}