diff --git a/CheckPkgConfig.py b/CheckPkgConfig.py index 35f6f30..b94a942 100644 --- a/CheckPkgConfig.py +++ b/CheckPkgConfig.py @@ -13,6 +13,7 @@ import re import commands import Config import os +import stat class PkgConfigCheck(AbstractCheck.AbstractFilesCheck): def __init__(self): @@ -32,7 +33,7 @@ class PkgConfigCheck(AbstractCheck.AbstractFilesCheck): def check_file(self, pkg, filename): - if pkg.isSource(): + if pkg.isSource() or not stat.S_ISREG(pkg.files()[filename][0]): return if pkg.grep(self.suspicious_dir, filename): diff --git a/rpmlint.changes b/rpmlint.changes index c909c54..ef9432a 100644 --- a/rpmlint.changes +++ b/rpmlint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 20 23:12:56 CET 2008 - dmueller@suse.de + +- only test for regular files in ChkPkgConfig check + ------------------------------------------------------------------- Fri Nov 7 15:53:11 CET 2008 - dmueller@suse.de diff --git a/rpmlint.spec b/rpmlint.spec index 98697cf..5260387 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -22,7 +22,7 @@ Name: rpmlint BuildRequires: rpm-python Summary: Rpm correctness checker Version: 0.84 -Release: 2 +Release: 3 Source0: %{name}-%{version}.tar.bz2 Source1: config Source1001: config.in @@ -214,6 +214,8 @@ rm -rf $RPM_BUILD_ROOT /usr/share/man/man1/rpmlint.1.gz %changelog +* Thu Nov 20 2008 dmueller@suse.de +- only test for regular files in ChkPkgConfig check * Fri Nov 07 2008 dmueller@suse.de - add check for otherproviders() in branding packages - correct kde4 related dependency checkers to not give false advises