Opened 8 years ago
Closed 8 years ago
#52791 closed defect (fixed)
port reclaim: keeps asking for permission to remove dependencies of inactive ports
Reported by: | mojca (Mojca Miklavec) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.3.99 |
Keywords: | Cc: | ||
Port: |
Description
I just decided to run port reclaim
instead of port uninstall inactive
.
The dealbreaker is that I have been asked 323 times the same pointless question (after deactivating all the p5.22-*
ports):
Note: It is not recommended to uninstall/deactivate a port that has dependents as it breaks the dependents. The following ports will break: foo @x.y_z Continue? [y/N]: y Warning: Uninstall forced. Proceeding despite dependencies.
Of course the port foo @x.y_z
was inactive and scheduled for removal.
The script should be more clever and not ask for permission to remove dependencies of ports that are planned to be removed anyway.
(On top of that the script needed some 4-5 GB of memory to complete and "froze" my old computer (while other programs fought for additional gigabytes of swap). That's not something I expect anyone to fix – other than me buying new hardware, I just wanted to mention it.)
Change History (2)
comment:1 Changed 8 years ago by jmroot (Joshua Root)
comment:2 Changed 8 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This message doesn't come from reclaim but from registry::check_dependents. Reclaim should probably pre-sort the inactive ports into dependency order like 'port uninstall' does.