summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-12-30 13:53:44 +0100
committerErich Eckner <git@eckner.net>2021-12-30 13:53:44 +0100
commit6ab9c0cb8adb27aa15f98429afb37f6b4d476496 (patch)
tree5ce59d46bcbc25ad777d1e52de312793dcbaeb18 /checkVersions
parent2218ba0db2931ad35aec4fa0655b24bfa6e2e25a (diff)
downloadarchlinuxewe-6ab9c0cb8adb27aa15f98429afb37f6b4d476496.tar.xz
checkVersions: learn tinc rc
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions5
1 files changed, 5 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions
index 416fe443d..cf65571e8 100755
--- a/checkVersions
+++ b/checkVersions
@@ -1056,6 +1056,10 @@ then
| grep -qx '[0-9.]\+_[0-9.]\+_rc[0-9]\+'; then
ist_rc=true
ver_match='[0-9._]\+[a-z]\?\(-rc[0-9]\+\)\?'
+ elif printf '%s\n' "${pkgver}" \
+ | grep -qx '[0-9.]\+_[0-9.]\+pre[0-9]\+'; then
+ ist_rc=true
+ ver_match='[0-9.]\+\(\.[0-9]\+pre[0-9]\+\)\?'
else
ist_rc=false
ver_match='[0-9._]\+[a-z]\?'
@@ -1084,6 +1088,7 @@ then
tr '_' '.' | \
sed '
s/^\(\S\+\)-\(rc[0-9]\+\)$/'"${pkgver%%_*}"'_\1_\2/
+ s/^\(\S\+pre\S\+\)$/'"${pkgver%_*pre*}"'_\0/
' | \
latest_version
)