I checked and apparently now_auto_removable and pkgs_auto_removable are
always the same, as "is_auto_removable" only returns different results
_after_ the packages have actually been upgraded. Just marking them does
apparently not change the output of is_auto_removable(). I tried to use
the ProblemResolver but I didn't get the output of is_auto_removable()
to change.

One possible solution is to actually upgrade the packages and then check
for autoremovability, then you can make it works as intended. My
original patch implemented only an autoremove (same as "apt-get
autoremove").

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1267059

Title:
  "Unattended-Upgrade::Remove-Unused-Dependencies" does not work

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1267059/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to