linuxmint / mintcommon

23 stars 25 forks source link

Don't allow uninstall of a package if... #47

Closed fredcw closed 2 years ago

fredcw commented 2 years ago

...it has dependents (reverse dependencies). Also when removing a package, also remove its autoremovable dependencies. Fix depreciation warnings in call to Gtk.MessageDialog.

This is to prevent the accidental removal of meta packages by inexperienced users.

clefebvre commented 2 years ago

What application are you testing it with?

I'm marking this as Next because it introduces new translation msgids.

fredcw commented 2 years ago

I assume this script is only used by the applets: menu applet, mintmenu, cinnVIIstarkMenu and cinnamenu and I've tested it on each. If you mean what apps have I uninstalled, I tried a few apps including vlc, gimp, inkscape.

fredcw commented 2 years ago

Sorry, this PR assumes apt-get output will be in english, I need to fix this. It won't find the autoremovable packages in other languages.

fredcw commented 2 years ago

I fixed the language issue with apt-get. I also created a new PR because this one got a bit messy. #48