summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-11 16:16:37 +0200
committerErich Eckner <git@eckner.net>2018-07-11 16:16:37 +0200
commit2a557a6426587cd3637b02d675742bfedda30a05 (patch)
tree0dfd6135122760d42f57d6056868e74d301ea631
parent73113db1f23748463fff9404ca5c2f81be6d561d (diff)
downloadarchlinuxewe-2a557a6426587cd3637b02d675742bfedda30a05.tar.xz
checkVersions: repair pacman-mirrorlist32
-rwxr-xr-xcheckVersions18
1 files changed, 18 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions
index 51a4e280f..89c807132 100755
--- a/checkVersions
+++ b/checkVersions
@@ -257,6 +257,24 @@ then
sort -V | \
tail -n1
)"
+ elif [ "${pkgname}" == 'pacman-mirrorlist32' ]
+ then
+ git -C "/usr/src/archlinux/packages" fetch origin >/dev/null 2>&1
+ git -C "/usr/src/archlinux32/packages" fetch origin >/dev/null 2>&1
+ remVer=$(
+ {
+ git -C "/usr/src/archlinux/packages" archive origin/master -- pacman-mirrorlist/repos/core-any/PKGBUILD | \
+ tar -Ox | \
+ grep -m1 '^pkgver=[0-9.]\+$' | \
+ cut -d= -f2
+ git -C "/usr/src/archlinux32/packages" archive origin/master -- core/pacman-mirrorlist/PKGBUILD | \
+ tar -Ox | \
+ grep -m1 '^pkgver=[0-9.]\+$' | \
+ cut -d= -f2
+ } | \
+ sort -V | \
+ tail -n1
+ )
elif echo "${src}" | \
grep -q '//www\.abisource\.com/'
then