[MacPorts] #61702: livecheck version comparison sees -pre suffix as newer than same version without -pre suffix
MacPorts
noreply at macports.org
Tue Dec 1 03:16:32 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
Resolution: | Keywords:
Port: |
---------------------+--------------------
Comment (by Tatsh):
Replying to [comment:2 ryandesign]:
> Livecheck works using the `vercmp` procedures, which just does numeric
comparisons of versions. It is not aware of nonstandard suffixes like
"-pre" and does not assign any special meaning to them, and I'm not sure
that it's appropriate for support for such suffixes to be added. Usually
individual ports override the livecheck regex as needed to accommodate
that project's particular version numbering strategy. For example in this
case you might use
>
> {{{
> github.livecheck.regex {([0-9.]+)}
> }}}
>
> to exclude all versions that are not composed solely of numbers and
periods.
This is good enough for me for packages like this. Thanks
--
Ticket URL: <https://trac.macports.org/ticket/61702#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list