forked from pool/rpmlint
Dirk Mueller
5474cb37a1
ignore-readelf-ar-error.diff OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=494
17 lines
609 B
Diff
17 lines
609 B
Diff
--- a/BinariesCheck.py
|
|
+++ b/BinariesCheck.py
|
|
@@ -240,8 +240,11 @@ class BinaryInfo(object):
|
|
|
|
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:
|