per-package hooks are broken

Bug #82566 reported by Colin Watson
2
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: apport

As https://launchpad.net/ubuntu/+source/ubiquity/+bug/82565 indicates, the Package key isn't just the package name - it contains other stuff as well, specifically "ubiquity 1.3.15 [modified: usr/lib/ubiquity/ubiquity/components/partman.py]" in this case. But apport/report.py does:

            m = __import__(self['Package'])

... which clearly isn't going to work. You need to strip everything after the first space.

Kees Cook (kees)
Changed in apport:
status: Unconfirmed → Confirmed
Kees Cook (kees)
Changed in apport:
status: Confirmed → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

 apport (0.47) feisty; urgency=low
 .
   * apport/report.py: quick fix for Herd 3, strip out Package suffixes

Thanks Kees for the quick fix! I'll merge it to trunk. Colin, sorry for the trouble, I'll add this to the test suite.

Changed in apport:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.