SHA256
1
0
forked from pool/rpmlint
OBS User unknown 2009-01-30 15:19:08 +00:00 committed by Git OBS Bridge
parent 4bf6ab48c3
commit a8d54e5711
4 changed files with 33 additions and 4 deletions

View File

@ -38,6 +38,10 @@ def notsymlink(pkg, f):
type = (mode>>12)&017
return type != 012
def ghostfile(pkg, f):
ghosts = pkg.ghostFiles()
return f in ghosts
_goodprefixes = (
'/bin/',
'/boot/',
@ -86,6 +90,7 @@ _restricteddirs = set()
_checks = [
{
# TODO: split this into several checks
'good': [
'/etc/sysconfig/cbq',
'/etc/sysconfig/scripts',
@ -103,7 +108,6 @@ _checks = [
],
'bad': [
'/usr/share/info/dir',
'*~',
'*/CVS',
'*/CVS/*',
'*/.cvsignore',
@ -111,7 +115,6 @@ _checks = [
'*/RCS',
'*/RCS/*',
'*,v',
'*.bak',
'*/.xvpics',
'*.orig',
'*.orig.gz',
@ -124,12 +127,18 @@ _checks = [
'/etc/rc.config.d/*',
'/etc/init.d/*/*',
'/usr/share/locale/LC_MESSAGES',
'/opt/gnome',
'/usr/lib/perl5/site_perl/*',
'/usr/lib/perl5/vendor_perl/5.*/auto',
'/usr/lib/perl5/vendor_perl/5.*/*-linux-*/auto',
],
},
{
'bad': [
'*~',
'*.bak',
],
'ignorefileif': ghostfile,
},
{
'error': 'suse-filelist-forbidden-devel-in-lib',
'details': 'please move la files, static libs and .so symlinks to /usr/lib(64)',

11
config
View File

@ -216,6 +216,17 @@ addFilter("beagle-index\.\S+: \w: (non-devel|unnecessary)-buildrequires")
addFilter("collect-desktop-files\.\S+: \w: (non-devel|unnecessary)-buildrequires")
addFilter("installation-images\.\S+: \w: (non-devel|unnecessary)-buildrequires")
# directory used by statd
addFilter("nfs-client\.\S+: \w: suse-filelist-forbidden /var/lib/nfs/sm.bak ")
# perl must have those
addFilter("perl\.\S+: \w: suse-filelist-forbidden /usr/lib/perl5/site_perl/.* ")
addFilter("perl\.\S+: \w: suse-filelist-forbidden /usr/lib/perl5/vendor_perl/5\..*/auto ")
addFilter("perl\.\S+: \w: suse-filelist-forbidden /usr/lib/perl5/vendor_perl/5\..*/.*-linux-.*/auto ")
# texinfo maintains that file
addFilter("texinfo\.\S+: \w: suse-filelist-forbidden /usr/share/info/dir ")
# suboptimal library packaging
addFilter(" non-devel-buildrequires graphviz")
addFilter(" non-devel-buildrequires ImageMagick")

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jan 30 14:35:48 CET 2009 - lnussel@suse.de
- add exception for nfs-utils, texinfo and perl
- allow backup files if they are ghost files
-------------------------------------------------------------------
Fri Jan 23 14:00:24 CET 2009 - lnussel@suse.de

View File

@ -22,7 +22,7 @@ Name: rpmlint
BuildRequires: rpm-python
Summary: Rpm correctness checker
Version: 0.84
Release: 12
Release: 13
Source0: %{name}-%{version}.tar.bz2
Source1: config
Source1001: config.in
@ -222,6 +222,9 @@ rm -rf $RPM_BUILD_ROOT
/usr/share/man/man1/rpmlint.1.gz
%changelog
* Fri Jan 30 2009 lnussel@suse.de
- add exception for nfs-utils, texinfo and perl
- allow backup files if they are ghost files
* Fri Jan 23 2009 lnussel@suse.de
- add check for DBus Policy problems
* Tue Jan 13 2009 lnussel@suse.de