~elementary-os/ubuntu-package-imports/dkms-trusty

« back to all changes in this revision

Viewing changes to debian/patches/apport_name_in_valueerror.diff

  • Committer: Cody Garver
  • Date: 2016-10-29 19:56:05 UTC
  • Revision ID: cody@elementary.io-20161029195605-qd9xkyb1879dyi6j
updated to version 2.2.0.3-1.1ubuntu5.14.04.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Author: Brian Murray <brian.murray@canonical.com>
 
2
Last-Update: 2016-09-15
 
3
 
 
4
Description: Fix ValueError string match
 
5
 
 
6
Apport version 2.5.3 returns the non-existing package name so we need to check
 
7
for that too.
 
8
 
 
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:
 
14
     try:
 
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
 
20
 
 
21
     if not supported_kernel: