summaryrefslogtreecommitdiff
path: root/checkVersions
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 /checkVersions
parentc8ad706d115261ba9b5991b1d3140be44c974b4f (diff)
downloadarchlinuxewe.git.save-8f1c007d4e5a012865b60ba999a2235c660976b6.tar.xz
checkVersions: do not update spatialite-tools beyond libspatialite's major-version
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions13
1 files changed, 13 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions
index e87e0cba..2011ae9a 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' | \