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:
parent
306c274239
commit
8b9cb8e03d
1 changed files with 3 additions and 3 deletions
|
@ -380,7 +380,7 @@ download_file() {
|
||||||
download_git() {
|
download_git() {
|
||||||
local netfile=$1
|
local netfile=$1
|
||||||
|
|
||||||
local fragment=${netfile##*#}
|
local fragment=${netfile#*#}
|
||||||
if [[ $fragment = "$netfile" ]]; then
|
if [[ $fragment = "$netfile" ]]; then
|
||||||
unset fragment
|
unset fragment
|
||||||
fi
|
fi
|
||||||
|
@ -460,7 +460,7 @@ download_git() {
|
||||||
download_hg() {
|
download_hg() {
|
||||||
local netfile=$1
|
local netfile=$1
|
||||||
|
|
||||||
local fragment=${netfile##*#}
|
local fragment=${netfile#*#}
|
||||||
if [[ $fragment = "$netfile" ]]; then
|
if [[ $fragment = "$netfile" ]]; then
|
||||||
unset fragment
|
unset fragment
|
||||||
fi
|
fi
|
||||||
|
@ -520,7 +520,7 @@ download_hg() {
|
||||||
download_svn() {
|
download_svn() {
|
||||||
local netfile=$1
|
local netfile=$1
|
||||||
|
|
||||||
local fragment=${netfile##*#}
|
local fragment=${netfile#*#}
|
||||||
if [[ $fragment = "$netfile" ]]; then
|
if [[ $fragment = "$netfile" ]]; then
|
||||||
unset fragment
|
unset fragment
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue