[Bug 940285] Re: dkms_apport.py reports bugs for unsupported kernel versions
Daniel Holbach
daniel.holbach at ubuntu.com
Mon Feb 27 09:52:27 UTC 2012
Uploaded, thanks for your work on this. It should be sitting in the
archive admin review queue.
Do you think you could forward the patch to
https://lists.us.dell.com/mailman/listinfo/dkms-devel? (I assume this is
the best place for it...)
** Changed in: dkms (Ubuntu)
Status: New => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/940285
Title:
dkms_apport.py reports bugs for unsupported kernel versions
Status in “dkms” package in Ubuntu:
Fix Committed
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.packaging.is_distro_package(kernel_package):
- print >> sys.stderr, 'ERROR (dkms apport): kernel package %s is not supported' % (kernel_package,)
- sys.exit(1)
+ try:
+ apport.packaging.is_distro_package(kernel_package)
+ 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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/940285/+subscriptions
More information about the Ubuntu-sponsors
mailing list