summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-11-20 20:40:31 +0100
committerErich Eckner <git@eckner.net>2020-11-20 20:40:31 +0100
commit8a810faa934216e7e0476da143ea2965d858d281 (patch)
treec0d5dc11fd2fd0b44b463a627bdc1b2cfcc5aa18
parent6423d3160ffded927957ffff00dfcc27f2c37937 (diff)
downloaddevops-8a810faa934216e7e0476da143ea2965d858d281.tar.xz
check-linux-versions: pull kernel list from official mirror
-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=$(