diff options
author | Erich Eckner <git@eckner.net> | 2019-12-12 15:18:22 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-12-12 15:18:22 +0100 |
commit | 0b47138671661c8eff4cd290c6ac0e85a2b63b7a (patch) | |
tree | 339d3e45c4ccda1e317e90848ec25b0267305734 | |
parent | 17392f7a15391d8877355196553e15923db56a76 (diff) | |
download | archlinuxewe-0b47138671661c8eff4cd290c6ac0e85a2b63b7a.tar.xz |
checkVersions: learn qt4
-rwxr-xr-x | checkVersions | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/checkVersions b/checkVersions index 15ee5e0ea..2dcfb3027 100755 --- a/checkVersions +++ b/checkVersions @@ -1008,6 +1008,33 @@ then ' | \ latest_version ) + elif echo "${src}" \ + | grep -q 'https://download\.qt\.io/archive/qt/'; then + for major in $( + curl_it 'https://download.qt.io/archive/qt/' \ + | sed -n ' + s@^.*<a href="\([0-9.]\+/\)">\1</a>.*$@\1@ + T + s@/$@@ + /^'"${pkgname#qt}"'/ p + ' \ + | sort -rV + ); do + remVer=$( + curl_it 'https://download.qt.io/archive/qt/'"${major}"'/' \ + | sed -n ' + s@^.*<a href="\([0-9.]\+/\)">\1</a>.*$@\1@ + T + s@/$@@ + p + ' \ + | sort -V \ + | tail -n1 + ) + if [ -n "${remVer}" ]; then + break; + fi + done else continue fi |