distfiles mirror: try $curfile first (renamed)

This commit is contained in:
Jürgen Buchmüller 2015-09-04 17:13:31 +02:00
parent 0c9bf4d33d
commit 00c18e3e88
1 changed files with 2 additions and 2 deletions

View File

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