Merge lp://staging/~rbalint/update-manager/remove-autoremovable-kernels into lp://staging/update-manager

Proposed by Balint Reczey
Status: Merged
Merged at revision: 2810
Proposed branch: lp://staging/~rbalint/update-manager/remove-autoremovable-kernels
Merge into: lp://staging/update-manager
Diff against target: 277 lines (+76/-23)
4 files modified
UpdateManager/Core/MyCache.py (+16/-0)
UpdateManager/Core/UpdateList.py (+38/-20)
UpdateManager/UpdatesAvailable.py (+15/-3)
debian/changelog (+7/-0)
To merge this branch: bzr merge lp://staging/~rbalint/update-manager/remove-autoremovable-kernels
Reviewer Review Type Date Requested Status
Julian Andres Klode Approve
Brian Murray Pending
Ɓukasz Zemczak Pending
Review via email: mp+341599@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
Julian Andres Klode (juliank) wrote :

joining the regular expressions with | might fail in case they themselves contain | (or one of them is invalid).

review: Needs Fixing
Revision history for this message
Balint Reczey (rbalint) wrote :

> joining the regular expressions with | might fail in case they themselves
> contain | (or one of them is invalid).

Any of them being invalid would be either an apt bug or an error in system configuration which we can't protect against here.
Having | without parentheses in the APT::VersionedKernelPackages regexps also sounds broken in itself that would make it an apt bug again.
Do you think this code would break on non-buggy APT::VersionedKernelPackages regexps?
I can add parentheses like (^...)|(^...) but that does not seem to be needed.

I'd like to avoid multiple matching to keep matching fast.

Revision history for this message
Balint Reczey (rbalint) wrote :

Moreover apt regexps like "foo|.*-bar" would break detecting the current running kernel's packages, too.

Revision history for this message
Julian Andres Klode (juliank) wrote :

Yes, you're right, | without () would not work correctly anyway.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: