2017-10-04 15:59:08 +02:00
|
|
|
Index: rpmlint-rpmlint-1.10/BinariesCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- rpmlint-rpmlint-1.10.orig/BinariesCheck.py
|
|
|
|
+++ rpmlint-rpmlint-1.10/BinariesCheck.py
|
|
|
|
@@ -255,8 +255,11 @@ class BinaryInfo(object):
|
2017-09-29 14:06:07 +02:00
|
|
|
|
|
|
|
else:
|
|
|
|
self.readelf_error = True
|
|
|
|
- printWarning(pkg, 'binaryinfo-readelf-failed',
|
|
|
|
- file, re.sub('\n.*', '', res[1]))
|
|
|
|
+ # Go and others are producing ar archives that don't have ELF
|
|
|
|
+ # headers, so don't complain about it
|
|
|
|
+ if not is_ar:
|
|
|
|
+ printWarning(pkg, 'binaryinfo-readelf-failed',
|
|
|
|
+ file, re.sub('\n.*', '', res[1]))
|
|
|
|
|
|
|
|
try:
|
|
|
|
with open(path, 'rb') as fobj:
|