forked from pool/rpmlint
This commit is contained in:
parent
4bf6ab48c3
commit
a8d54e5711
@ -38,6 +38,10 @@ def notsymlink(pkg, f):
|
|||||||
type = (mode>>12)&017
|
type = (mode>>12)&017
|
||||||
return type != 012
|
return type != 012
|
||||||
|
|
||||||
|
def ghostfile(pkg, f):
|
||||||
|
ghosts = pkg.ghostFiles()
|
||||||
|
return f in ghosts
|
||||||
|
|
||||||
_goodprefixes = (
|
_goodprefixes = (
|
||||||
'/bin/',
|
'/bin/',
|
||||||
'/boot/',
|
'/boot/',
|
||||||
@ -86,6 +90,7 @@ _restricteddirs = set()
|
|||||||
|
|
||||||
_checks = [
|
_checks = [
|
||||||
{
|
{
|
||||||
|
# TODO: split this into several checks
|
||||||
'good': [
|
'good': [
|
||||||
'/etc/sysconfig/cbq',
|
'/etc/sysconfig/cbq',
|
||||||
'/etc/sysconfig/scripts',
|
'/etc/sysconfig/scripts',
|
||||||
@ -103,7 +108,6 @@ _checks = [
|
|||||||
],
|
],
|
||||||
'bad': [
|
'bad': [
|
||||||
'/usr/share/info/dir',
|
'/usr/share/info/dir',
|
||||||
'*~',
|
|
||||||
'*/CVS',
|
'*/CVS',
|
||||||
'*/CVS/*',
|
'*/CVS/*',
|
||||||
'*/.cvsignore',
|
'*/.cvsignore',
|
||||||
@ -111,7 +115,6 @@ _checks = [
|
|||||||
'*/RCS',
|
'*/RCS',
|
||||||
'*/RCS/*',
|
'*/RCS/*',
|
||||||
'*,v',
|
'*,v',
|
||||||
'*.bak',
|
|
||||||
'*/.xvpics',
|
'*/.xvpics',
|
||||||
'*.orig',
|
'*.orig',
|
||||||
'*.orig.gz',
|
'*.orig.gz',
|
||||||
@ -124,12 +127,18 @@ _checks = [
|
|||||||
'/etc/rc.config.d/*',
|
'/etc/rc.config.d/*',
|
||||||
'/etc/init.d/*/*',
|
'/etc/init.d/*/*',
|
||||||
'/usr/share/locale/LC_MESSAGES',
|
'/usr/share/locale/LC_MESSAGES',
|
||||||
'/opt/gnome',
|
|
||||||
'/usr/lib/perl5/site_perl/*',
|
'/usr/lib/perl5/site_perl/*',
|
||||||
'/usr/lib/perl5/vendor_perl/5.*/auto',
|
'/usr/lib/perl5/vendor_perl/5.*/auto',
|
||||||
'/usr/lib/perl5/vendor_perl/5.*/*-linux-*/auto',
|
'/usr/lib/perl5/vendor_perl/5.*/*-linux-*/auto',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'bad': [
|
||||||
|
'*~',
|
||||||
|
'*.bak',
|
||||||
|
],
|
||||||
|
'ignorefileif': ghostfile,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'error': 'suse-filelist-forbidden-devel-in-lib',
|
'error': 'suse-filelist-forbidden-devel-in-lib',
|
||||||
'details': 'please move la files, static libs and .so symlinks to /usr/lib(64)',
|
'details': 'please move la files, static libs and .so symlinks to /usr/lib(64)',
|
||||||
|
11
config
11
config
@ -216,6 +216,17 @@ addFilter("beagle-index\.\S+: \w: (non-devel|unnecessary)-buildrequires")
|
|||||||
addFilter("collect-desktop-files\.\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")
|
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
|
# suboptimal library packaging
|
||||||
addFilter(" non-devel-buildrequires graphviz")
|
addFilter(" non-devel-buildrequires graphviz")
|
||||||
addFilter(" non-devel-buildrequires ImageMagick")
|
addFilter(" non-devel-buildrequires ImageMagick")
|
||||||
|
@ -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
|
Fri Jan 23 14:00:24 CET 2009 - lnussel@suse.de
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ Name: rpmlint
|
|||||||
BuildRequires: rpm-python
|
BuildRequires: rpm-python
|
||||||
Summary: Rpm correctness checker
|
Summary: Rpm correctness checker
|
||||||
Version: 0.84
|
Version: 0.84
|
||||||
Release: 12
|
Release: 13
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source1: config
|
Source1: config
|
||||||
Source1001: config.in
|
Source1001: config.in
|
||||||
@ -222,6 +222,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
/usr/share/man/man1/rpmlint.1.gz
|
/usr/share/man/man1/rpmlint.1.gz
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Jan 23 2009 lnussel@suse.de
|
||||||
- add check for DBus Policy problems
|
- add check for DBus Policy problems
|
||||||
* Tue Jan 13 2009 lnussel@suse.de
|
* Tue Jan 13 2009 lnussel@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user