[Bug 940285] [NEW] dkms_apport.py reports bugs for unsupported kernel versions

Launchpad Bug Tracker 940285 at bugs.launchpad.net
Fri Feb 24 13:27:04 UTC 2012


You have been subscribed to a public bug by Felix Geyer (debfx):

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.

** Affects: dkms (Ubuntu)
     Importance: Undecided
         Status: New

-- 
dkms_apport.py reports bugs for unsupported kernel versions
https://bugs.launchpad.net/bugs/940285
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list