apt test does not properly parse phased packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hobbit-plugins (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When a package has phased updates, the output of apt-cache policy contains some extra text:
grub2:
Installed: 2.06-2ubuntu7.1
Candidate: 2.06-2ubuntu7.1
Version table:
*** 2.06-2ubuntu7.1 500 (phased 27%)
500 http://
100 /var/lib/
2.06-2ubuntu7 500
500 http://
The regex used to parse the installed version (starting "***") does not match when the string "(phased 27%)" is present:
if (/^ (?: |\*\*\*) (\S*[^\s:]) (\d+)$/) { ... }
and thus the apt test incorrectly reports such a package is not installed from the apt repos:
&yellow Packages not installed from apt repositories (3):
grub-pc-bin (2.06-2ubuntu7.1)
grub2 (2.06-2ubuntu7.1)
grub2-common (2.06-2ubuntu7.1)
CVE References
Changed in hobbit-plugins (Ubuntu): | |
status: | Confirmed → Fix Committed |
The attachment "apt-test- handle- phased- package. patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]