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: default avatarLevente Polyak <anthraxx@archlinux.org>
parent 94b0413e
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment