dkms_apport.py reports bugs for unsupported kernel versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkms (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
dkms 2.2.0.2-1ubuntu2 introduced a regression which causes apport to report bugs about unsupported kernel versions.
For example bug #939928 is about kernel 3.3.0-rc4-ux31.
- if not apport.
- print >> sys.stderr, 'ERROR (dkms apport): kernel package %s is not supported' % (kernel_package,)
- sys.exit(1)
+ try:
+ apport.
+ except ValueError, e:
+ if e == 'package does not exist':
+ print >> sys.stderr, 'ERROR (dkms apport): kernel package %s is not supported' % (kernel_package)
+ sys.exit(1)
The result of is_distro_package() isn't checked at all.
Proposed fix:
dkms (2.2.0.3-1ubuntu1) precise; urgency=low
* Only report bugs about supported kernel versions. This fixes a regression supported_ kernel_ packages. diff:
introduced in 2.2.0.2-1ubuntu2. (LP: #940285)
- Add apport_
Check the result of is_distro_package() and fix the check if the kernel
header package is installed at all.
-- Felix Geyer <email address hidden> Fri, 24 Feb 2012 14:08:47 +0100