From 3d24cee58a8b080895377299de2dd43a2f1d534a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 12 Mar 2014 15:47:49 +0100 Subject: [PATCH] hooks/do-fetch/distfiles: do not strip '>*' in url, pass it as is. --- common/hooks/do-fetch/00-distfiles.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh index 9c964411874..33f1c68300b 100644 --- a/common/hooks/do-fetch/00-distfiles.sh +++ b/common/hooks/do-fetch/00-distfiles.sh @@ -44,7 +44,6 @@ hook() { trap - ERR for f in ${distfiles}; do - localurl="${f%>*}" curfile=$(basename "${f#*>}") distfile="$srcdir/$curfile" @@ -57,7 +56,7 @@ hook() { # If distfile does not exist download it. if [ ! -f "$distfile" ]; then msg_normal "$pkgver: fetching distfile '$curfile'...\n" - flock "${distfile}.part" $XBPS_FETCH_CMD $localurl + flock "${distfile}.part" $XBPS_FETCH_CMD "$f" if [ ! -f "$distfile" ]; then msg_error "$pkgver: failed to fetch $curfile.\n" fi