forked from pool/rpmlint
7383a6345e
Copy from Base:System/rpmlint based on submit request 17759 from user thomasbiege OBS-URL: https://build.opensuse.org/request/show/17759 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=43
22 lines
674 B
Diff
22 lines
674 B
Diff
--- BinariesCheck.py
|
|
+++ BinariesCheck.py
|
|
@@ -10,6 +10,7 @@
|
|
|
|
import re
|
|
import stat
|
|
+import os
|
|
|
|
import rpm
|
|
|
|
@@ -252,7 +253,9 @@
|
|
|
|
# stripped ?
|
|
if not unstrippable.search(fname) and not is_ocaml_native:
|
|
- if not_stripped.search(pkgfile.magic):
|
|
+ if not_stripped.search(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)
|
|
|