[MacPorts] #61050: Add `port vercmp` command

MacPorts noreply at macports.org
Sat Aug 22 05:10:31 UTC 2020


#61050: Add `port vercmp` command
-------------------------+--------------------
 Reporter:  ryandesign   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  base         |    Version:  2.6.99
 Keywords:               |       Port:
-------------------------+--------------------
 Portfile authors need to know in which situations they need to increase a
 port's `epoch`. To do that, they need to be able to run the MacPorts
 `vercmp` procedure and see what it prints for the port's old version and
 the new one, but MacPorts doesn't expose a way to do that. I have a script
 I often use to do this:

 https://github.com/ryandesign/macports-user-
 ryandesign/blob/master/scripts/vercmp

 I propose that we should add a `port vercmp` command to integrate this
 functionality. Proposed usage example:

 {{{
 $ port vercmp 1.0-rc1 1.0
 MacPorts considers 1.0-rc1 to be greater than 1.0.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61050>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list