[MacPorts] #61702: livecheck version comparison sees -pre suffix as newer than same version without -pre suffix
MacPorts
noreply at macports.org
Sun Nov 29 17:41:36 UTC 2020
#61702: livecheck version comparison sees -pre suffix as newer than same version
without -pre suffix
--------------------------------+--------------------
Reporter: Tatsh | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.6.4
Keywords: version, livecheck | Port:
--------------------------------+--------------------
Using livecheck with this package:
https://github.com/GothenburgBitFactory/timewarrior/tags
Portfile is here:
https://github.com/Tatsh/ports/blob/master/office/timew/Portfile
This package has a `-pre` tagged version `v1.4.2` that is seen as newer
than the final release of `v1.4.2`. The top version under `/tags` on
GitHub is usually the newest, but also `-pre` should be considered older
than a version with the same numbers but without -pre. Same goes for
`[.-](alpha|beta)[0-9]+?$`.
Debug output:
{{{
DEBUG: Fetching https://github.com/GothenburgBitFactory/timewarrior/tags
DEBUG: Using CURL options "--append-http-header" "Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
DEBUG: The regex is "archive/v([^"]+)\.tar\.gz"
DEBUG: The regex matched "archive/v1.4.2.tar.gz", extracted "1.4.2"
DEBUG: The regex matched "archive/v1.4.2-pre.tar.gz", extracted
"1.4.2-pre"
DEBUG: The regex matched "archive/v1.4.1.tar.gz", extracted "1.4.1"
DEBUG: The regex matched "archive/v1.4.0.tar.gz", extracted "1.4.0"
DEBUG: The regex matched "archive/v1.3.0.tar.gz", extracted "1.3.0"
DEBUG: The regex matched "archive/v1.2.0.tar.gz", extracted "1.2.0"
DEBUG: The regex matched "archive/v1.1.1.tar.gz", extracted "1.1.1"
DEBUG: The regex matched "archive/v1.1.0.tar.gz", extracted "1.1.0"
DEBUG: The regex matched "archive/v1.0.0.tar.gz", extracted "1.0.0"
DEBUG: The regex matched "archive/v1.0.0.beta1.tar.gz", extracted
"1.0.0.beta1"
timew seems to have been updated (port version: 1.4.2, new version:
1.4.2-pre)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61702>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list