forked from pool/rpmlint
check for empty filter
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=24
This commit is contained in:
parent
2e4e338fbc
commit
f659362342
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user