summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-04-19 10:46:21 +0200
committerErich Eckner <git@eckner.net>2020-04-19 10:46:21 +0200
commit7a6833f1ffb29194251242ee41aca9b256421f44 (patch)
tree5a943404db88560e7efac285dec19d0b5ecfad41 /checkVersions
parent0b5115b384a25e5909a7bceed2b7a946229ea028 (diff)
downloadarchlinuxewe.git.save-7a6833f1ffb29194251242ee41aca9b256421f44.tar.xz
checkVersions: repair sourceforge devel versions
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions26
1 files changed, 22 insertions, 4 deletions
diff --git a/checkVersions b/checkVersions
index 96a85daa..4b286dab 100755
--- a/checkVersions
+++ b/checkVersions
@@ -761,14 +761,20 @@ then
)
remVer=$( \
curl_it "${quVer}" | \
+ if [ -z "${pkgname##*-devel}" ]; then
+ cat
+ else
+ sed '
+ \@<a [^>]*-devel/@,\@</a>@ d
+ '
+ fi | \
sed -n '
- \@<a [^>]*-devel/@,\@</a>@ d
\@<a [^<>]* href="[^"<>]*/latest/download"@,\@</a>@ {
- s@^.*<span class="sub-label">\(\('"${pkgname}"'\|'"${_pkgname}"'\)\([-.]\|%20\)\)\?\([0-9.]\+\)\(\.tar\.\([xgl]z\|bz2\)\|\.zip\|-win-dist\.msi\)\( [^<>]*\)\?</span>.*$@\4@
+ s@^.*<span class="sub-label">\(\('"${pkgname}"'\|'"${_pkgname}"'\)\([-.]\|%20\)\)\?\([0-9.]\+\)\(\.tar\.\([xgl]z\|bz2\)\|\.zip\|-win-dist\.msi\)\( [^<>]*\)\?</span>.*$@0 \4@
T
p
}
- s@^.*"'"${quVer#*sourceforge.net}"'\('"${pkgname}"'\([-.]\|%20\)\)\?\([0-9.-]\+[^"/%]*\)["/%].*$@\3@
+ s@^.*"'"${quVer#*sourceforge.net}"'\('"${pkgname}"'\([-.]\|%20\)\)\?\([0-9.-]\+[^"/%]*\)["/%].*$@2 \3@
T
p
' | \
@@ -777,10 +783,22 @@ then
s/\.$//
' | \
if [ "${pkgname}" = 'qwt5' ]; then
- grep '^5\.'
+ grep '^\S\+ 5\.'
else
cat
fi | \
+ sort -k1n,1 | \
+ sed '
+ /^0/ a 1 cut
+ ' | \
+ sort -k1n,1 | \
+ sed '
+ /^1 cut$/ q
+ ' | \
+ sed '
+ /^1 cut$/ d
+ s/^\S\+ //
+ ' | \
latest_version
)
elif echo "${src}" | \