forked from pool/rpmlint
Dirk Mueller
2764482b3b
0001-Handle-post-scripts-that-contain-non-ascii-character.patch OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=515
19 lines
765 B
Diff
19 lines
765 B
Diff
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):
|
|
|
|
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:
|