[pacman-dev] [PATCH] makepkg: allow fragment to contain a "#" character
Allan McRae
allan at archlinux.org
Mon Aug 27 23:18:26 EDT 2012
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 at archlinux.org>
---
scripts/makepkg.sh.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 7e5aa95..aed6b8b 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -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
--
1.7.12
More information about the pacman-dev
mailing list