[MacPorts] #15186: port upgrade does not work correctly on current pseudo-port
MacPorts
noreply at macports.org
Mon Apr 2 13:36:28 UTC 2018
#15186: port upgrade does not work correctly on current pseudo-port
---------------------+----------------------------
Reporter: raimue | Owner: raimue
Type: defect | Status: assigned
Priority: Normal | Milestone: MacPorts 2.5.0
Component: base | Version: 1.6.0
Resolution: | Keywords:
Port: |
---------------------+----------------------------
Comment (by raimue):
If we want this to work, we are missing an API just like
`macports::upgrade`, but instead of looking up a port by name with
`mportlookup`, it would take a port name of the installed port and a
porturl for the replacement. However, that seems a bit complex just for
this case.
You can use `sudo port install` with the current pseudo-port to replace an
installed port. The only difference is that `port install` is allowed to
downgrade to an earlier version. Therefore another alternative could be to
divert `port upgrade current` automatically to the install target, maybe
with an informational message as the behavior changes slightly.
However, I thought that completely removing this functionality from `port
upgrade` would be a good idea. After a while we could even make `port
upgrade` default to `port upgrade outdated` to make using MacPorts easier.
--
Ticket URL: <https://trac.macports.org/ticket/15186#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list