Opened 5 years ago
Last modified 5 years ago
#58597 new enhancement
When MacPorts asks a yes/no question, add an abort option
Reported by: | peteswickedale | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | |
Keywords: | Cc: | ||
Port: |
Description (last modified by peteswickedale)
Watson:ncurses roy$ sudo port uninstall ncurses The following versions of ncurses are currently installed: 1) ncurses @6.1_0 (active) 2) ncurses @6.1_0+universal Enter option(s) [1-2/all]: all Note: It is not recommended to uninstall/deactivate a port that has dependents as it breaks the dependents. The following ports will break: watch @3.3.11_0 ... fluidsynth @2.0.5_0 Continue? [y/N]: n ---> Uninstalling ncurses @6.1_0+universal
This doesn't seem right. Should there be an Abort option? BTW, I did a selfupdate just before doing this.
Change History (3)
comment:1 Changed 5 years ago by peteswickedale
Description: | modified (diff) |
---|
comment:2 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | MacPorts uninstalls when N is chosen → When MacPorts asks a yes/no question, add an abort option |
---|---|
Type: | defect → enhancement |
comment:3 Changed 5 years ago by neverpanic (Clemens Lang)
There is an abort option, that is pressing Ctrl+C. However, that option, I've noticed, does not always work immediately but takes effect when you give any answer after pressing Ctrl+C, which is certainly sub-optimal.
Note: See
TracTickets for help on using
tickets.
You asked MacPorts to uninstall all installed ports named ncurses. There were two. Uninstalling the first one (the active one) would break another port, watch, so MacPorts asked you if you really wanted to do that. You answered no, so MacPorts did not uninstall the active ncurses. But it did uninstall the other one (the inactive one) since you originally asked it to uninstall all of them, and uninstalling that one wouldn't break anything.
So it is working as designed. However, it might make sense to add an abort option which would prevent any further actions from taking place.