SHA256
1
0
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:
Dirk Mueller 2012-03-21 17:00:36 +00:00 committed by Git OBS Bridge
parent fad9b7334a
commit f4c98421e8
2 changed files with 8 additions and 4 deletions

View File

@ -139,7 +139,7 @@ _checks = [
'bad': [ 'bad': [
'*~', '*~',
'*.bak', '*.bak',
'*.swp', '*/.*.swp',
], ],
'ignorefileif': ghostfile, 'ignorefileif': ghostfile,
}, },
@ -389,9 +389,8 @@ class FilelistCheck(AbstractCheck.AbstractCheck):
if 'ignorefileif' in check: if 'ignorefileif' in check:
if check['ignorefileif'](pkg, f): if check['ignorefileif'](pkg, f):
continue continue
if (not isinstance(b, str) and b.match(f)) or b == f: if (not isinstance(b, str) and b.match(f)) or b == f:
m = msg % { 'file':f } printError(pkg, error, msg % { 'file':f } )
printError(pkg, error, m)
invalidfhs = set() invalidfhs = set()
invalidopt = set() invalidopt = set()

View File

@ -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 Tue Mar 20 08:32:33 UTC 2012 - lnussel@suse.de