summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-11-20 20:46:44 +0100
committerErich Eckner <git@eckner.net>2020-11-20 20:46:44 +0100
commit663495ec3fc5b24c088e0682bd507753c6b9474f (patch)
tree098970fe9ce7d62efb0ad074c46b389c86441b54 /checkVersions
parentd4044ac28f72c24c1057d13964762cfc351f25a2 (diff)
downloadarchlinuxewe-663495ec3fc5b24c088e0682bd507753c6b9474f.tar.xz
checkVersions: get rid of local mounts of mirror
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions30
1 files changed, 18 insertions, 12 deletions
diff --git a/checkVersions b/checkVersions
index 53431dd92..03b3d2b01 100755
--- a/checkVersions
+++ b/checkVersions
@@ -196,9 +196,6 @@ then
${me} "${args[@]}" $(echo */PKGBUILD | tr " " "\n" | sed "s|/PKGBUILD||") | tee -a "${tmpFile}"
err=$?
else
- if ! mountpoint -q /mnt/archlinux32; then
- mount /mnt/archlinux32
- fi
/usr/src/archlinux32/devops/watch-versions | sed 's/$/ (arch32)/' | tee -a "${tmpFile}"
${me} "${args[@]}" $(echo *32/PKGBUILD | tr ' ' '\n' | sed 's|/PKGBUILD||') | tee -a "${tmpFile}"
err=$?
@@ -234,15 +231,24 @@ then
grep '^pkg\(base\|name\|ver\)=' $1/PKGBUILD
)"
remVer=$(
- find '/mnt/archlinux32' -regextype sed \
- -type f \
- -regex '.*/'"${1%32}"'-[^-]\+-[^-]\+-any\.pkg\.tar\.\(xz\|zst\)' \
- -printf '%f\n' | \
- sed '
- s/-[^-]\+-[^-]\+$//
- s/^.*-//
- ' | \
- latest_version
+ for a in i486 i686 pentium4; do
+ for r in core extra community testing community-testing staging community-staging; do
+ curl -Ss 'https://mirror.archlinux32.org/'"${a}"'/'"${r}"'/'"${r}"'.db' \
+ | bsdtar -Oxf - \
+ | sed -n '
+ /^%FILENAME%/ {
+ N
+ s/^%FILENAME%\n//
+ /^'"${1%32}"'-[^-]\+-[^-]\+-any\.pkg\.tar\.\(xz\|zst\)$/ p
+ }
+ '
+ done
+ done \
+ | sed '
+ s/-[^-]\+-[^-]\+$//
+ s/^.*-//
+ ' \
+ | latest_version
)
srcKnown=true
source=()