-
Notifications
You must be signed in to change notification settings - Fork 183
Simplify excluding packages from automatic updates #661
Description
Is your feature request related to a problem? Please describe.
As of today, mintupdate uses two blacklists:
- "normal" blacklist
- package may be added to it via context menu (right-click > Ignore all future updates for this package).
- packages included here are not visible in GUI (and not updated via Install Updates button?)
- "automatic" blacklist (
/etc/mintupdate.blacklist) - used by automatic updates- packages may be added by exporting "normal" BL here via button in Properties > Automation
- packages from this list are not updated automatically, but may be updated manually and are visible in GUI
In this situation, handling a package that I want to update only manually (& automatic updates for rest of packages) is complicated.
Lets assume I have 3 programs 😄: vim, emacs, and butterfly (xkcd). I want to automatically update vim, never update emacs (10.17 will break my workflow) and update butterfly only manually (as it's a bleeding-edge technology and I want to test new bugs from beta only on Fridays).
To configure it as described above, I need to:
- Add
butterflyto normal BL. - Hit Export blacklist to /etc/mintupdate.blacklist button.
- Remove
butterflyfrom normal BL. - Add
emacsto normal BL.
OR
- Add
butterflyto/etc/mintupdate.blacklistusingvimorbutterflyeditor - but it's error-prone, and not user-friendly.
To make things worse, let's assume I want to ignore also automatic updates for cat. Now I need to:
- Remove
emacsfrom normal BL. - Add both
catandbutterflyto normal BL. (because in other case I'll overridebutterflyin next step) - Hit export button.
- Add
emacs, removecatandbutterflyfrom normal BL.
As you can see, it's a mess to exclude sth from automatic updates. And there are multiple reasons why users may want to exclude only few packages from auto-updates. (i. e. to preserve security by auto-updates, but not kill experience by auto-updating few beta apps). In current implementation it's also nice that user has a reminder via tray icon that sth may be updated manually.
Describe the solution you'd like
I think the simplest solution would be to add new action to right-click context menu. Sth like "Exclude this package (only) from auto-updates". It would add an entry in /etc/mintupdate.blacklist (but not override anything). There would be also a way to add/delete packages from automatic BL in Properties > Automation like there is one in Properties > Blacklist.
Describe alternatives you've considered
It would be also possible to do something more sophisticated in Properties > Automation, but first approach is probably simpler.
Additional context
Current mintupdate version: 5.7.3
I tested current behaviour by adding butterfly 😉 to /etc/mintupdate.blacklist (manually or using described steps), applying auto-update - forced by execution of /usr/lib/linuxmint/mintUpdate/automatic_upgrades.py, then updating butterfly manually by Install Updates button in GUI.