hooks/do-fetch/distfiles: do not strip '>*' in url, pass it as is.

This commit is contained in:
Juan RP 2014-03-12 15:47:49 +01:00
parent cd02e84329
commit 3d24cee58a

View file

@ -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