[MacPorts] #61702: livecheck version comparison sees -pre suffix as newer than same version without -pre suffix

MacPorts noreply at macports.org
Mon Nov 30 21:09: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
Resolution:          |   Keywords:
      Port:          |
---------------------+--------------------

Comment (by 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/61702#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list