SHA256
1
0
forked from pool/rpmlint

Accepting request 73730 from devel:openSUSE:Factory:rpmlint

- fix library policy check complaining about non-ELF files (bnc#700067)

OBS-URL: https://build.opensuse.org/request/show/73730
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=125
This commit is contained in:
Sascha Peilicke 2011-06-15 14:59:15 +00:00 committed by Git OBS Bridge
commit ee869cf1d8
2 changed files with 7 additions and 2 deletions

View File

@ -318,11 +318,11 @@ class LibraryPolicyCheck(AbstractCheck.AbstractCheck):
reqlibs = set()
pkg_requires = set(map(lambda x: string.split(x[0],'(')[0], pkg.requires()))
for f in files.keys():
for f, pkgfile in files.items():
if f.find('.so.') != -1 or f.endswith('.so'):
filename = pkg.dirName() + '/' + f
try:
if stat.S_ISREG(files[f].mode):
if stat.S_ISREG(files[f].mode) and 'ELF' in pkgfile.magic:
bi = BinaryInfo(pkg, filename, f, False, True)
libs_needed = libs_needed.union(bi.needed)
if bi.soname != 0:

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 15 12:34:09 UTC 2011 - lnussel@suse.de
- fix library policy check complaining about non-ELF files (bnc#700067)
-------------------------------------------------------------------
Tue Jun 7 15:14:20 UTC 2011 - lnussel@suse.de