From 00c18e3e88e5b36974282fab40f9f6410aa2a3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 4 Sep 2015 17:13:31 +0200 Subject: [PATCH] distfiles mirror: try $curfile first (renamed) --- common/hooks/do-fetch/00-distfiles.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/hooks/do-fetch/00-distfiles.sh b/common/hooks/do-fetch/00-distfiles.sh index fa43f1a4ab..ee59623366 100644 --- a/common/hooks/do-fetch/00-distfiles.sh +++ b/common/hooks/do-fetch/00-distfiles.sh @@ -78,10 +78,10 @@ try_mirrors() { mirror="$mirror/$subdir" fi msg_normal "$pkgver: fetching distfile '$curfile' from '$mirror'...\n" - $XBPS_FETCH_CMD "$mirror/$basefile" + $XBPS_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/$curfile" + $XBPS_FETCH_CMD "$mirror/$basefile" fi [ ! -f "$distfile" ] && continue flock -n ${distfile}.part rm -f ${distfile}.part