hooks/do-fetch/00-distfiles.sh: use fetch_cmd instead of XBPS_FETCH_CMD
This commit is contained in:
parent
202b6a7b97
commit
07c2dc7131
1 changed files with 3 additions and 3 deletions
|
@ -182,10 +182,10 @@ try_mirrors() {
|
||||||
mirror="$mirror/$subdir"
|
mirror="$mirror/$subdir"
|
||||||
fi
|
fi
|
||||||
msg_normal "$pkgver: fetching distfile '$curfile' from '$mirror'...\n"
|
msg_normal "$pkgver: fetching distfile '$curfile' from '$mirror'...\n"
|
||||||
$XBPS_FETCH_CMD "$mirror/$curfile"
|
$fetch_cmd "$mirror/$curfile"
|
||||||
# If basefile was not found, but a curfile file may exist, try to fetch it
|
# If basefile was not found, but a curfile file may exist, try to fetch it
|
||||||
if [ ! -f "$distfile" -a "$basefile" != "$curfile" ]; then
|
if [ ! -f "$distfile" -a "$basefile" != "$curfile" ]; then
|
||||||
$XBPS_FETCH_CMD "$mirror/$basefile"
|
$fetch_cmd "$mirror/$basefile"
|
||||||
fi
|
fi
|
||||||
[ ! -f "$distfile" ] && continue
|
[ ! -f "$distfile" ] && continue
|
||||||
flock -n ${distfile}.part rm -f ${distfile}.part
|
flock -n ${distfile}.part rm -f ${distfile}.part
|
||||||
|
@ -259,7 +259,7 @@ hook() {
|
||||||
# If distfile does not exist, download it from the original location.
|
# If distfile does not exist, download it from the original location.
|
||||||
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 "$f"
|
flock "${distfile}.part" $fetch_cmd "$f"
|
||||||
fi
|
fi
|
||||||
if [ ! -f "$distfile" ]; then
|
if [ ! -f "$distfile" ]; then
|
||||||
msg_error "$pkgver: failed to fetch $curfile.\n"
|
msg_error "$pkgver: failed to fetch $curfile.\n"
|
||||||
|
|
Loading…
Add table
Reference in a new issue