FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 08-28-2012, 03:18 AM
Allan McRae
 
Default 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>
---
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
 

Thread Tools




All times are GMT. The time now is 04:05 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org