hooks/do-fetch/distfiles: do not strip '>*' in url, pass it as is.
This commit is contained in:
parent
cd02e84329
commit
3d24cee58a
1 changed files with 1 additions and 2 deletions
|
@ -44,7 +44,6 @@ hook() {
|
||||||
trap - ERR
|
trap - ERR
|
||||||
|
|
||||||
for f in ${distfiles}; do
|
for f in ${distfiles}; do
|
||||||
localurl="${f%>*}"
|
|
||||||
curfile=$(basename "${f#*>}")
|
curfile=$(basename "${f#*>}")
|
||||||
distfile="$srcdir/$curfile"
|
distfile="$srcdir/$curfile"
|
||||||
|
|
||||||
|
@ -57,7 +56,7 @@ hook() {
|
||||||
# If distfile does not exist download it.
|
# If distfile does not exist download it.
|
||||||
if [ ! -f "$distfile" ]; then
|
if [ ! -f "$distfile" ]; then
|
||||||
msg_normal "$pkgver: fetching distfile '$curfile'...\n"
|
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
|
if [ ! -f "$distfile" ]; then
|
||||||
msg_error "$pkgver: failed to fetch $curfile.\n"
|
msg_error "$pkgver: failed to fetch $curfile.\n"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue