apt-check.py counts security updates twice if pkg in -updates and -security
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jaunty |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: update-notifier
Discussion on ubuntu-users from post https:/
After the packages appeared in BOTH archives, and before they were installed, reports such as the message-of-the-day would report
6 packages can be updated.
12 updates are security updates.
It appears that the code to check for the presence of masked security updates is not catering for this case.
Possible fix attached. The patch is against karmic, but the same code appears in the jaunty version, at about line 107, rather than 140. Because of changes to the enclosing loop, the indentation is wrong for application of this patch to the 0.76.2 code used in jaunty.
I just reviewed the patch. It cpompares the versions using '<=', but should probably be an explicit '==' as the critical condition is where the same version appears in both places