forked from pool/rpmlint
- fix false positives for swp matching
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=109
This commit is contained in:
parent
fad9b7334a
commit
f4c98421e8
@ -139,7 +139,7 @@ _checks = [
|
||||
'bad': [
|
||||
'*~',
|
||||
'*.bak',
|
||||
'*.swp',
|
||||
'*/.*.swp',
|
||||
],
|
||||
'ignorefileif': ghostfile,
|
||||
},
|
||||
@ -389,9 +389,8 @@ class FilelistCheck(AbstractCheck.AbstractCheck):
|
||||
if 'ignorefileif' in check:
|
||||
if check['ignorefileif'](pkg, f):
|
||||
continue
|
||||
if (not isinstance(b, str) and b.match(f)) or b == f:
|
||||
m = msg % { 'file':f }
|
||||
printError(pkg, error, m)
|
||||
if (not isinstance(b, str) and b.match(f)) or b == f:
|
||||
printError(pkg, error, msg % { 'file':f } )
|
||||
|
||||
invalidfhs = set()
|
||||
invalidopt = set()
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 21 17:59:23 CET 2012 - dmueller@suse.de
|
||||
|
||||
- fix false positives for swp matching
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 20 08:32:33 UTC 2012 - lnussel@suse.de
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user