Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] QGIS Latest and LTR version results are switched #109

Open
AScott-WWF opened this issue Aug 21, 2024 · 0 comments
Open

[Bug] QGIS Latest and LTR version results are switched #109

AScott-WWF opened this issue Aug 21, 2024 · 0 comments

Comments

@AScott-WWF
Copy link

I've noticed the new NeverGreen release 2408.1 has a slight error in the Get-QGIS.ps1 script, the latest version returns the LTR version and the LTR version returns the Latest version.
This is due to the outerHTML matches have been swapped.
Lines 3-7 currently:

$URL64 = 'https://www.qgis.org' + ($Response.Links | Where-Object {$_.outerHTML -match 'Long Term' -and $_.href -Like '*.msi'} | Select-Object -First 1 -ExpandProperty href)
$Version64 = $URL64 | Get-Version

$URL64LTR = 'https://www.qgis.org' + ($Response.Links | Where-Object {$_.outerHTML -match 'Latest' -and $_.href -Like '*.msi'} | Select-Object -First 1 -ExpandProperty href)
$Version64LTR = $URL64LTR | Get-Version

These should be:

$URL64 = 'https://www.qgis.org' + ($Response.Links | Where-Object {$_.outerHTML -match 'Latest' -and $_.href -Like '*.msi'} | Select-Object -First 1 -ExpandProperty href)
$Version64 = $URL64 | Get-Version

$URL64LTR = 'https://www.qgis.org' + ($Response.Links | Where-Object {$_.outerHTML -match 'Long Term' -and $_.href -Like '*.msi'} | Select-Object -First 1 -ExpandProperty href)
$Version64LTR = $URL64LTR | Get-Version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant