From f659362342f2bbc43641c775cc917b5dfa2f8e9d3cbca5c84ce1fb5aa062f5ed Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 20 May 2011 09:10:47 +0000 Subject: [PATCH] check for empty filter OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=24 --- suse-filter-exception.diff | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/suse-filter-exception.diff b/suse-filter-exception.diff index ecb4148..759d7b5 100644 --- a/suse-filter-exception.diff +++ b/suse-filter-exception.diff @@ -72,7 +72,7 @@ Index: Config.py _filters_re = '(?:' + _filters[0] + ')' for idx in range(1, len(_filters)): -@@ -162,7 +192,24 @@ def isFiltered(s): +@@ -162,9 +192,27 @@ def isFiltered(s): _filters_re = _filters_re + '|(?:' + _filters[idx] +')' _filters_re = re.compile(_filters_re) @@ -89,11 +89,15 @@ Index: Config.py + _filters_except_re = re.compile(_filters_except_re) + if not no_exception: +- if _filters_re.search(s): + + if _filters_non_except_re and _filters_non_except_re.search(s): -+ return True + return True + if _filters_except_re and _filters_except_re.search(s): + return False - if _filters_re.search(s): - return True ++ if _filters_re and _filters_re.search(s): ++ return True ++ return False + + # Config.py ends here