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:
commit
ee869cf1d8
@ -318,11 +318,11 @@ class LibraryPolicyCheck(AbstractCheck.AbstractCheck):
|
|||||||
reqlibs = set()
|
reqlibs = set()
|
||||||
pkg_requires = set(map(lambda x: string.split(x[0],'(')[0], pkg.requires()))
|
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'):
|
if f.find('.so.') != -1 or f.endswith('.so'):
|
||||||
filename = pkg.dirName() + '/' + f
|
filename = pkg.dirName() + '/' + f
|
||||||
try:
|
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)
|
bi = BinaryInfo(pkg, filename, f, False, True)
|
||||||
libs_needed = libs_needed.union(bi.needed)
|
libs_needed = libs_needed.union(bi.needed)
|
||||||
if bi.soname != 0:
|
if bi.soname != 0:
|
||||||
|
@ -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
|
Tue Jun 7 15:14:20 UTC 2011 - lnussel@suse.de
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user