diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh index ebe0f88772d..2b479b56dd1 100644 --- a/common/hooks/do-fetch/00-distfiles.sh +++ b/common/hooks/do-fetch/00-distfiles.sh @@ -182,10 +182,10 @@ try_mirrors() { mirror="$mirror/$subdir" fi 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 [ ! -f "$distfile" -a "$basefile" != "$curfile" ]; then - $XBPS_FETCH_CMD "$mirror/$basefile" + $fetch_cmd "$mirror/$basefile" fi [ ! -f "$distfile" ] && continue 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 [ ! -f "$distfile" ]; then msg_normal "$pkgver: fetching distfile '$curfile'...\n" - flock "${distfile}.part" $XBPS_FETCH_CMD "$f" + flock "${distfile}.part" $fetch_cmd "$f" fi if [ ! -f "$distfile" ]; then msg_error "$pkgver: failed to fetch $curfile.\n"