desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #135274
[Bug 1485787] Re: package_hook does not include package version
This bug was fixed in the package apport - 2.18.1-0ubuntu1
---------------
apport (2.18.1-0ubuntu1) wily; urgency=medium
* New upstream bug fix release. Changes since our previous snapshot:
- packaging.py: Only consider first word in /etc/os-release's NAME value.
This works around Debian's inconsistent value. (LP: #1408245)
- Unify and simplify Package: field generation in kernel_crashdump,
kernel_oops, and package_hook by using the new Report.add_package()
method. (LP: #1485787)
- sandboxutils.py, make_sandbox(): Make "Cannot find package which ships
Executable/InterpreterPath" fatal, to save some unnecessary package
unpack cycles. (LP: #1487174)
* etc/apport/crashdb.conf: Enable crash reports on Launchpad for wily.
Really late, sorry about that!
-- Martin Pitt <martin.pitt@xxxxxxxxxx> Thu, 10 Sep 2015 11:48:46
+0200
** Changed in: apport (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1485787
Title:
package_hook does not include package version
Status in apport package in Ubuntu:
Fix Released
Status in apport source package in Trusty:
Fix Released
Status in apport source package in Vivid:
Fix Released
Bug description:
All of these problem reports are missing a package version:
https://errors.ubuntu.com/problem/abc807de9d9c87d965fea31c865192edb30b6738
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/apport/package_hook -p apport
2) grep "^Package" /var/crash/apport.1000.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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1485787/+subscriptions
References