1
Author: Brian Murray <brian.murray@canonical.com>
2
Last-Update: 2016-09-15
4
Description: Fix ValueError string match
6
Apport version 2.5.3 returns the non-existing package name so we need to check
9
Index: dkms-2.2.0.3/dkms_apport.py
10
===================================================================
11
--- dkms-2.2.0.3.orig/dkms_apport.py
12
+++ dkms-2.2.0.3/dkms_apport.py
13
@@ -52,7 +52,7 @@ if options.kernel:
15
supported_kernel = apport.packaging.is_distro_package(kernel_package)
16
except ValueError as e:
17
- if str(e) == 'package does not exist':
18
+ if str(e) == 'package %s does not exist' % kernel_package:
19
supported_kernel = False
21
if not supported_kernel: