[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.50-106-gceaf35d
Andreas Beckmann
anbe at debian.org
Wed May 1 10:31:10 UTC 2013
The following commit has been merged in the develop branch:
commit 3be702e9d53ad5d3083395d47e86927d95ebc285
Author: Andreas Beckmann <anbe at debian.org>
Date: Sun Apr 28 16:44:30 2013 +0200
dwke: don't compile missing pattern
and avoid a KeyError
Signed-off-by: Andreas Beckmann <anbe at debian.org>
diff --git a/master-bin/detect_well_known_errors b/master-bin/detect_well_known_errors
index 6810a26..4e206bd 100755
--- a/master-bin/detect_well_known_errors
+++ b/master-bin/detect_well_known_errors
@@ -122,7 +122,10 @@ class Problem():
if not tag in self.__dict__:
self.tags_are_valid = False
- self.inc_re = re.compile( self.PATTERN )
+ if "PATTERN" in self.__dict__:
+ self.inc_re = re.compile( self.PATTERN )
+ else:
+ self.inc_re = None
if "EXCLUDE_PATTERN" in self.__dict__:
self.exc_re = re.compile( self.EXCLUDE_PATTERN )
--
piuparts git repository
More information about the Piuparts-commits
mailing list