makerepropkg: prioritize downloading .zst packages over legacy format

First try a .zst location before falling back to legacy variants. This
should slightly speed up downloading of dependencies, especially over
time as .zst packages are or will be the dominant format.

Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
This commit is contained in:
Levente Polyak 2020-02-21 00:03:59 +01:00
parent 94b0413e13
commit a0f79fcce0
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ get_pkgfile() {
local pkgname=${pkgfilebase%-*-*-*}
local pkgfile ext
for ext in .xz .zst ''; do
for ext in .zst .xz ''; do
pkgfile=${pkgfilebase}.pkg.tar${ext}
for c in "${cache_dirs[@]}"; do