<div dir="ltr"><div class="gmail_default" style="color:#000000"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 28, 2014 at 9:30 AM, Peter Danecek <span dir="ltr"><<a href="mailto:Peter.Danecek@bo.ingv.it" target="_blank">Peter.Danecek@bo.ingv.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
On 28 Feb 2014, at 15:17, Jason Swails <<a href="mailto:jason.swails@gmail.com">jason.swails@gmail.com</a>> wrote:<br>
<br>
> An alternative when you know that you are uninstalling a port is to<br>
> select none. So something like<br>
><br>
> sudo port select --set postgresql none<br>
><br>
> to get rid of the simlinks, then another<br>
><br>
> sudo port select --set postgresql postgresql93<br>
><br>
> to set the simlinks to the new version you want to track. (This<br>
> approach is untested, but I think it should work.) A feature request<br>
> may be for "port select" to detect dangling links and print an<br>
> informative message (perhaps with a suggested command to eliminate the<br>
> dangling links). That's largely aesthetic, though.<br>
<br>
</div>This does not work (tested).<br>
You cannot set new pointers after uninstalling the port, not even to none.<br>
I have not tested forcing but remove the link to be able to use port select again.<br>
<br>
I am not sure this is only aesthetic!<br></blockquote><div><br></div><div class="gmail_default" style="color:rgb(0,0,0)">I'll agree with you now. "-f" should only be required if you do something atypical -- I don't like it as part of a required workflow.</div>
<div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">I've needed it before, but that was when I deleted /opt/local to reinstall MacPorts and file collisions occurred inside other folders (like /Applications/MacPorts).</div>
<div class="gmail_default" style="color:rgb(0,0,0)"></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(should we move this discussion on devel?)<br></blockquote><div><br></div><div class="gmail_default" style="color:rgb(0,0,0)">I have no opinion here. I'm not subscribed to that list and do not actively help to maintain MacPorts...</div>
<div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">All the best,</div><div class="gmail_default" style="color:rgb(0,0,0)">Jason</div><div class="gmail_default" style="color:rgb(0,0,0)">
</div></div>-- <br><div dir="ltr">Jason M. Swails<br>BioMaPS,<br>Rutgers University<br>Postdoctoral Researcher</div>
</div></div>