Accepting request 42273 from Base:System

Copy from Base:System/rpmlint based on submit request 42273 from user lnussel

OBS-URL: https://build.opensuse.org/request/show/42273
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=63
This commit is contained in:
OBS User autobuild 2010-06-30 08:49:32 +00:00 committed by Git OBS Bridge
parent 06b0f1d903
commit 0f8e49b66b
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 29 14:29:57 UTC 2010 - lnussel@suse.de
- don't print unstripped binary warning when used with build script
(bnc#618004)
-------------------------------------------------------------------
Mon Jun 7 08:33:32 UTC 2010 - andrea@opensuse.org

View File

@ -23,7 +23,7 @@ Name: rpmlint
BuildRequires: rpm-python
Summary: Rpm correctness checker
Version: 0.95
Release: 8
Release: 9
Source0: %{name}-%{version}.tar.bz2
Source1: config
Source1001: config.in

View File

@ -10,14 +10,13 @@ Index: BinariesCheck.py
import rpm
@@ -264,7 +265,9 @@ class BinariesCheck(AbstractCheck.Abstra
@@ -271,7 +272,8 @@ class BinariesCheck(AbstractCheck.Abstra
# 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):
+ os.environ.get('BUILD_DIR', None) == None:
printWarning(
pkg, 'unstripped-binary-or-object', fname)