forked from pool/rpmlint
5e20a03ee9
Copy from Base:System/rpmlint based on submit request 30231 from user lnussel OBS-URL: https://build.opensuse.org/request/show/30231 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=50
22 lines
668 B
Diff
22 lines
668 B
Diff
--- BinariesCheck.py
|
|
+++ BinariesCheck.py
|
|
@@ -10,6 +10,7 @@
|
|
|
|
import re
|
|
import stat
|
|
+import os
|
|
|
|
import rpm
|
|
|
|
@@ -247,7 +248,9 @@
|
|
|
|
# stripped ?
|
|
if not is_ocaml_native and not unstrippable.search(fname):
|
|
- if 'not stripped' in pkgfile.magic:
|
|
+ if 'not stripped' in pkgfile.magic and \
|
|
+ (os.environ.get('BUILD_IS_RUNNING', None) == None or \
|
|
+ os.environ.get('BUILD_DEBUG_FLAGS','').find('-g') != -1):
|
|
printWarning(
|
|
pkg, 'unstripped-binary-or-object', fname)
|
|
|