makepkg: allow fragment to contain a "#" character

The frament element of a vcs url may contain the "#" charcter in the
(e.g) branch or tag name.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2012-08-28 11:42:06 +10:00 committed by Dan McGee
parent 306c274239
commit 8b9cb8e03d

View file

@ -380,7 +380,7 @@ download_file() {
download_git() {
local netfile=$1
local fragment=${netfile##*#}
local fragment=${netfile#*#}
if [[ $fragment = "$netfile" ]]; then
unset fragment
fi
@ -460,7 +460,7 @@ download_git() {
download_hg() {
local netfile=$1
local fragment=${netfile##*#}
local fragment=${netfile#*#}
if [[ $fragment = "$netfile" ]]; then
unset fragment
fi
@ -520,7 +520,7 @@ download_hg() {
download_svn() {
local netfile=$1
local fragment=${netfile##*#}
local fragment=${netfile#*#}
if [[ $fragment = "$netfile" ]]; then
unset fragment
fi