summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2020-02-21 00:03:59 +0100
committerLevente Polyak <anthraxx@archlinux.org>2020-03-09 23:27:03 +0100
commita0f79fcce0b58b4fb126a452a3a2b4414611c9c9 (patch)
tree8f610af06b8edc0c5b9fbdd77b791ccbea50ecb1
parent94b0413e1399d92326de0851467b36998eee796b (diff)
downloaddevtools32-a0f79fcce0b58b4fb126a452a3a2b4414611c9c9.tar.xz
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>
-rwxr-xr-xmakerepropkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makerepropkg.in b/makerepropkg.in
index bd064a4..62ba5f3 100755
--- a/makerepropkg.in
+++ b/makerepropkg.in
@@ -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