Opened 8 weeks ago

Closed 8 weeks ago

Last modified 8 weeks ago

#70457 closed defect (fixed)

qgis3-ltr: livecheck doesn't work

Reported by: multiquadric Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: qgis3-ltr

Description (last modified by ryandesign (Ryan Carsten Schmidt))

This page detects QGIS3 version updates. Did not see the code in the Portfile. The version checking is working (mysteriously) to me. https://ports.macports.org/port/qgis3/details/

Work may needed on the QGIS distribution (not MacPorts). The version.txt files appear to required manual curation.

Latest versions and roadmap: https://www.qgis.org/resources/roadmap/

QGIS3 3.38.1
QGIS3-LTR 3.34.9

This page detects QGIS3 LTR (Long-term release) version updates. I did see code. One gets a "404" though. https://ports.macports.org/port/qgis3-ltr/details/

426     livecheck.url   https://qgis.org/version-ltr.txt

The two relevant URLs appear to be:

QGIS: https://version.qgis.org/version.txt

#QGIS Version 33800|Visit https://download.qgis.org to get your copy of version 3.38.0|<html><body>
<ul>
<li>The current released version of QGIS is 3.38.0.
<li>We are working on 3.39-Master. It will go into feature freeze on 2024-09-13 12:00:00 UTC and be released as 3.40 on 2024-10-25 12:00:00 UTC.
<li>Details on changes can be found on github at <a href="https://github.com/qgis/QGIS/commits/master">https://github.com/qgis/QGIS/commits/master</a>.
</body>
</html>

QGIS-LTR: https://version.qgis.org/version-ltr.txt

#QGIS Version 33408|Visit https://download.qgis.org to get your copy of version 3.34.8|<html><body>
<ul>
<li>The current available LTR version of QGIS is 3.34.8.
<li>The latest available version of QGIS is 3.38.0.
<li>We are working on 3.39-Master. It will go into feature freeze on 2024-09-13 12:00:00 UTC and be released as 3.40 on 2024-10-25 12:00:00 UTC.
<li>Details on changes can be found on github at <a href="https://github.com/qgis/QGIS/commits/master">https://github.com/qgis/QGIS/commits/master</a>.
</body>
</html>

Change History (5)

comment:1 Changed 8 weeks ago by multiquadric

Description: modified (diff)
Summary: livecheck URLslivecheck URLs or version checking

comment:2 in reply to:  description Changed 8 weeks ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to Veence
Port: qgis3-ltr added; qgis3 removed
Status: newassigned
Summary: livecheck URLs or version checkingqgis3-ltr: livecheck doesn't work

Replying to multiquadric:

This page detects QGIS3 version updates. Did not see the code in the Portfile. The version checking is working (mysteriously) to me. https://ports.macports.org/port/qgis3/details/

It's not mysterious; it's handled by the github portgroup.

Work may needed on the QGIS distribution (not MacPorts). The version.txt files appear to required manual curation.

If you mean that the version.txt file appears to be outdated then I agree with you.

This page detects QGIS3 LTR (Long-term release) version updates. I did see code. One gets a "404" though. https://ports.macports.org/port/qgis3-ltr/details/

426     livecheck.url   https://qgis.org/version-ltr.txt

The two relevant URLs appear to be:

QGIS: https://version.qgis.org/version.txt

#QGIS Version 33800|Visit https://download.qgis.org to get your copy of version 3.38.0|<html><body>
<ul>
<li>The current released version of QGIS is 3.38.0.
<li>We are working on 3.39-Master. It will go into feature freeze on 2024-09-13 12:00:00 UTC and be released as 3.40 on 2024-10-25 12:00:00 UTC.
<li>Details on changes can be found on github at <a href="https://github.com/qgis/QGIS/commits/master">https://github.com/qgis/QGIS/commits/master</a>.
</body>
</html>

QGIS-LTR: https://version.qgis.org/version-ltr.txt

#QGIS Version 33408|Visit https://download.qgis.org to get your copy of version 3.34.8|<html><body>
<ul>
<li>The current available LTR version of QGIS is 3.34.8.
<li>The latest available version of QGIS is 3.38.0.
<li>We are working on 3.39-Master. It will go into feature freeze on 2024-09-13 12:00:00 UTC and be released as 3.40 on 2024-10-25 12:00:00 UTC.
<li>Details on changes can be found on github at <a href="https://github.com/qgis/QGIS/commits/master">https://github.com/qgis/QGIS/commits/master</a>.
</body>
</html>

Ok, so they changed the hostname for the version files. Easy to change.

I'll fix qgis3-ltr to use version-ltr.txt from the new URL. We could switch qgis3 to use version.txt. It would have the advantage that the version number would be reported "correctly", with dots separating the numbers instead of underscores as we have currently due to the way the github portgroup works and the way this project tags their releases. However, version.txt currently says 3.38.0 is the latest, as you said, but 3.38.1 has been available for a week; not sure why version.txt is lagging.

comment:3 Changed 8 weeks ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In d6836cd5fc00d0aa5c8ef223705571c39b1c4b4f/macports-ports (master):

qgis3-ltr: Fix livecheck.url

Closes: #70457

comment:4 Changed 8 weeks ago by multiquadric

Thanks!

FYI — QGIS Issue logged per version.txt https://github.com/qgis/QGIS/issues/58255

Last edited 8 weeks ago by multiquadric (previous) (diff)

comment:5 Changed 8 weeks ago by multiquadric

Assuming version info is up to date, this regex may work to parse the first line of version.txt or version-ltr.txt and remove the need to doing any math to find the version information:

version (0|\[1-9\]\[0-9\]*).(0|\[1-9\]\[0-9\]*).(0|\[1-9\]\[0-9\]*)

==> version-ltr.txt <== #QGIS Version 33408|Visit https://download.qgis.org to get your copy of version 3.34.8|<html><body>

==> version.txt <== #QGIS Version 33800|Visit https://download.qgis.org to get your copy of version 3.38.0|<html><body>

Note: See TracTickets for help on using tickets.