<div dir="ltr"><div class="gmail_quote">Thank you for your feedback.<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
To me it would make more sense to offer three options:<br>
- yes (continue and leave those dependencies in a broken state)<br>
- no (stop)<br>
- continue and recursively uninstall all dependencies<br>
<br></blockquote><div>Offering a third option like --follow-dependencies or
--follow-dependents in such cases is a nice idea. To display the
question with three choices we can either use the ui_ask_singlechoice
proc from the API(line 5431 in src/port/port.tcl) {easier way} or add an extra option to the ui_ask_yesno proc (line 5364) {harder way}
for such questions by using the 'name' parameter. The singlechoice way
will number the choices which will not look pretty.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
While you covered this with "--follow-dependencies", it feels more<br>
natural to be able to pick the third option here. Or at least the<br>
output should document that additional option (which should be trivial<br>
to patch at least).<br></blockquote><div>To implement this src/registry 2.0/portuninstall.tcl and src/registry
2.0/registry_util.tcl need to be patched. <br>I will patch the output to document the --follow-dependents option soon. <br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
(Another "problem" that I'm often experiencing is that I'm unable to<br>
uninstall a port when *inactive* ports depend on it. Sometimes<br>
macports should distinguish between the two and make less headaches<br>
when inactive ports get broken.)<br></blockquote><div><div>Thanks for pointing out another use case. I will add this to the wiki page where I am maintaining a list of all the implemented and not yet implemented use cases <a href="http://trac.macports.org/wiki/SummerOfCode2014_interactive">here</a>.<br>
</div><br> </div></div></div>