summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck-linux-versions12
1 files changed, 9 insertions, 3 deletions
diff --git a/check-linux-versions b/check-linux-versions
index e39fb47..7ad8306 100755
--- a/check-linux-versions
+++ b/check-linux-versions
@@ -4,9 +4,15 @@ for a in i486 i686 pentium4; do
for r in core extra community testing community-testing staging community-staging; do
for k in '' '-lts' '-pae' '-zen'; do
kernels=$(
- find /mnt/archlinux32/${a}/${r} \
- -name 'linux*.zst' \
- -printf '%f\n' \
+ curl -Ss "https://mirror.archlinux32.org/${a}/${r}/${r}.db" \
+ | bsdtar -Oxf - \
+ | sed -n '
+ /^%FILENAME%/ {
+ N
+ s@^%FILENAME%\n@@
+ p
+ }
+ ' \
| grep "^linux${k}"'\(\|-docs\|-headers\)-[0-9]'
) || continue
kernels=$(