[MacPorts] #31702: port select fails if symlink already exists from earlier installation or from uninstalled port
MacPorts
noreply at macports.org
Thu Feb 2 13:29:57 UTC 2017
#31702: port select fails if symlink already exists from earlier installation or
from uninstalled port
---------------------+--------------------------------
Reporter: gthb | Owner: macports-tickets@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: base | Version: 2.0.3
Resolution: fixed | Keywords:
Port: |
---------------------+--------------------------------
Changes (by raimue):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"9389e838454b8ad9792c41a5128ff1178f9b2542/macports-base"
9389e83/macports-base]:
{{{
#!ConfigurableCommitTicketReference repository="macports-base"
revision="9389e838454b8ad9792c41a5128ff1178f9b2542"
mportselect: always delete existing symlinks
If the previously selected port was uninstalled, the 'current' symlink
would be left pointing to the old select file that is no longer
available.
The condition using 'file exists' follows the symlink and checks its
target, not the symlink itself. It is safe to always call 'file delete'
as deletion of a non-existing target is not an error.
Closes: https://trac.macports.org/ticket/31702
}}}
--
Ticket URL: <https://trac.macports.org/ticket/31702#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list