diff --git a/LibraryPolicyCheck.py b/LibraryPolicyCheck.py index e5efe04..1c37242 100644 --- a/LibraryPolicyCheck.py +++ b/LibraryPolicyCheck.py @@ -408,7 +408,7 @@ class LibraryPolicyCheck(AbstractCheck.AbstractCheck): # Verify shared lib policy package doesn't have hard dependency on non-lib packages if std_lib_package: for dep in pkg.requires(): - if (dep[0][0:7] == 'rpmlib('): + if (dep[0].startswith('rpmlib(') or dep[0].startswith('config(')): continue if (dep[1] & (rpm.RPMSENSE_GREATER | rpm.RPMSENSE_EQUAL)) == rpm.RPMSENSE_EQUAL: printWarning(pkg, "shlib-fixed-dependency", Pkg.formatRequire(dep[0], dep[1], dep[2])) diff --git a/rpmlint.changes b/rpmlint.changes index 809acb1..a7dd528 100644 --- a/rpmlint.changes +++ b/rpmlint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 29 12:02:40 CET 2012 - dmueller@suse.de + +- ignore fixed dependencies on config() + ------------------------------------------------------------------- Mon Feb 20 16:05:23 UTC 2012 - lnussel@suse.de diff --git a/rpmlint.spec b/rpmlint.spec index 3bfbce8..5bbbaff 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -57,10 +57,16 @@ Source26: CheckLogrotate.py Source100: syntax-validator.py Url: http://rpmlint.zarb.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: rpm-python, /usr/bin/readelf, file, findutils, cpio, bash +Requires: /usr/bin/readelf +Requires: bash +Requires: checkbashisms +Requires: cpio +Requires: dash Requires: desktop-file-utils +Requires: file +Requires: findutils Requires: python-magic -Requires: dash checkbashisms +Requires: rpm-python BuildArch: noarch Patch0: rpmlint-suse.diff Patch1: suse-checks.diff