Merge lp:~robert-ancell/update-manager/update-counts into lp:update-manager

Proposed by Robert Ancell
Status: Merged
Merge reported by: Brian Murray
Merged at revision: not available
Proposed branch: lp:~robert-ancell/update-manager/update-counts
Merge into: lp:update-manager
Diff against target: 17 lines (+5/-1)
1 file modified
UpdateManager/UpdatesAvailable.py (+5/-1)
To merge this branch: bzr merge lp:~robert-ancell/update-manager/update-counts
Reviewer Review Type Date Requested Status
Brian Murray Approve
Review via email: mp+436808@code.launchpad.net

Description of the change

Show number of updates in each group.

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

The update-manager code has moved to git but I cherry-picked your patch and uploaded it for mantic.

https://git.launchpad.net/update-manager/commit/?id=6a3278c2162d462bda371b01f0c7cd11f5dbd3c3

review: Approve
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Thanks Brian!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'UpdateManager/UpdatesAvailable.py'
2--- UpdateManager/UpdatesAvailable.py 2023-01-30 02:03:29 +0000
3+++ UpdateManager/UpdatesAvailable.py 2023-02-03 01:10:22 +0000
4@@ -1032,8 +1032,12 @@
5 len(group.items) == 1:
6 group_is_item = group.items[0]
7
8+ name = group.name
9+ if len(group.items) > 1:
10+ name = '%s (%d)' % (group.name, len(group.items))
11+
12 group_row = [
13- group.name,
14+ name,
15 UpdateData(None, group, group_is_item),
16 humanize_size(group.get_total_size()),
17 True,

Subscribers

People subscribed via source and target branches

to status/vote changes: