summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-10-24 20:07:42 +0200
committerErich Eckner <git@eckner.net>2020-10-24 20:07:42 +0200
commit8f1c007d4e5a012865b60ba999a2235c660976b6 (patch)
tree0959a0e3fde9eb5880f0f3477706539006906574
parentc8ad706d115261ba9b5991b1d3140be44c974b4f (diff)
downloadarchlinuxewe-8f1c007d4e5a012865b60ba999a2235c660976b6.tar.xz
checkVersions: do not update spatialite-tools beyond libspatialite's major-version
-rwxr-xr-xcheckVersions13
1 files changed, 13 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions
index e87e0cba2..2011ae9a8 100755
--- a/checkVersions
+++ b/checkVersions
@@ -987,6 +987,19 @@ then
ist_rc=false
ver_match='[0-9._]\+[a-z]\?'
fi
+ if [ "${pkgname}" = 'spatialite-tools' ]; then
+ ver_match="$(
+ tar -Oxzf /var/lib/pacman/sync/community.db --wildcards 'libspatialite-*-*/desc' \
+ | sed -n '
+ /^%VERSION%/ {
+ N
+ s/^%VERSION%\n\([0-9]\+\.\).*$/\1/
+ T
+ p
+ }
+ '
+ )${ver_match}"
+ fi
remVer=$( \
curl_it "${quVer}" | \
tr '"<>' '\n\n\n' | \