2010-04-28 20:41:49 +00:00
|
|
|
Index: BinariesCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- BinariesCheck.py.orig
|
2008-04-17 02:52:37 +00:00
|
|
|
+++ BinariesCheck.py
|
2009-08-21 16:19:06 +00:00
|
|
|
@@ -10,6 +10,7 @@
|
|
|
|
|
|
|
|
import re
|
2008-04-17 02:52:37 +00:00
|
|
|
import stat
|
|
|
|
+import os
|
|
|
|
|
2009-08-21 16:19:06 +00:00
|
|
|
import rpm
|
|
|
|
|
2010-04-28 20:41:49 +00:00
|
|
|
@@ -264,7 +265,9 @@ class BinariesCheck(AbstractCheck.Abstra
|
2008-04-17 02:52:37 +00:00
|
|
|
|
|
|
|
# stripped ?
|
2009-09-16 16:41:21 +00:00
|
|
|
if not is_ocaml_native and not unstrippable.search(fname):
|
2010-01-27 17:18:50 +00:00
|
|
|
- if 'not stripped' in pkgfile.magic:
|
|
|
|
+ if 'not stripped' in pkgfile.magic and \
|
|
|
|
+ (os.environ.get('BUILD_IS_RUNNING', None) == None or \
|
2009-08-21 16:19:06 +00:00
|
|
|
+ os.environ.get('BUILD_DEBUG_FLAGS','').find('-g') != -1):
|
|
|
|
printWarning(
|
|
|
|
pkg, 'unstripped-binary-or-object', fname)
|
2008-04-17 02:52:37 +00:00
|
|
|
|