package_hook does not include package version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apport (Ubuntu) |
Fix Released
|
High
|
Martin Pitt | ||
Trusty |
Fix Released
|
High
|
Brian Murray | ||
Vivid |
Fix Released
|
High
|
Brian Murray |
Bug Description
All of these problem reports are missing a package version:
https:/
This is because package_hook in apport only writes the following:
pr['Package'] = options.package
We should include the package version in the problem report.
Test Case
---------
1) echo "You have failed this city." | /usr/share/
2) grep "^Package" /var/crash/
With the current version of apport you'll only see the package name, with the version from -proposed you'll see the package version in addition to the name.
Regression Potential
-------
Worst case scenario I screwed the patch up and we loose the package name too, but given that it works in wily and there is a test for it in test_hooks.py that seems unlikely.
tags: | added: trusty vivid wily |
Changed in apport (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in apport (Ubuntu Trusty): | |
status: | New → Triaged |
Changed in apport (Ubuntu Vivid): | |
status: | New → Triaged |
Changed in apport (Ubuntu Trusty): | |
importance: | Undecided → High |
Changed in apport (Ubuntu Vivid): | |
importance: | Undecided → High |
description: | updated |
Changed in apport (Ubuntu Trusty): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in apport (Ubuntu Vivid): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in apport (Ubuntu Vivid): | |
status: | Triaged → In Progress |
Changed in apport (Ubuntu Trusty): | |
status: | Triaged → In Progress |
This bug was fixed in the package apport - 2.18-0ubuntu7
---------------
apport (2.18-0ubuntu7) wily; urgency=medium
* data/package_hook: When creating a Package problem write the version of
the package to the report. (LP: #1485787)
-- Brian Murray <email address hidden> Mon, 17 Aug 2015 15:40:39 -0700