SHA256
1
0
forked from pool/rpmlint

Accepting request 21431 from Base:System

Copy from Base:System/rpmlint based on submit request 21431 from user dirkmueller

OBS-URL: https://build.opensuse.org/request/show/21431
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=47
This commit is contained in:
OBS User autobuild 2009-10-01 13:55:52 +00:00 committed by Git OBS Bridge
parent eaf5a8d432
commit e929013e29
4 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 30 16:31:13 CEST 2009 - dmueller@suse.de
- fix exceptions in BinaryInfo
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 9 18:23:16 CEST 2009 - dmueller@suse.de Wed Sep 9 18:23:16 CEST 2009 - dmueller@suse.de

View File

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

View File

@ -42,11 +42,11 @@
+ if bin_info.readelf_error: + if bin_info.readelf_error:
+ pass + pass
+ elif not bin_info.symtab: + elif not bin_info.symtab:
+ printError(pkg, 'static-library-without-symtab', i[0]) + printError(pkg, 'static-library-without-symtab', fname)
+ elif not bin_info.debuginfo and \ + elif not bin_info.debuginfo and \
+ (os.environ.get('BUILD_IS_RUNNING', None) == None or \ + (os.environ.get('BUILD_IS_RUNNING', None) == None or \
+ os.environ.get('BUILD_DEBUG_FLAGS','').find('-g') != -1): + os.environ.get('BUILD_DEBUG_FLAGS','').find('-g') != -1):
+ printWarning(pkg, 'static-library-without-debuginfo', i[0]) + printWarning(pkg, 'static-library-without-debuginfo', fname)
+ +
# so name in library # so name in library
if is_shlib: if is_shlib:

View File

@ -15,7 +15,7 @@ Index: BinariesCheck.py
else: else:
# in /usr/share ? # in /usr/share ?
- if usr_share.search(fname): - if usr_share.search(fname):
+ if usr_share.search(fname) and not usr_arch_share.search(i[0]): + if usr_share.search(fname) and not usr_arch_share.search(fname):
printError( printError(
pkg, 'arch-dependent-file-in-usr-share', fname) pkg, 'arch-dependent-file-in-usr-share', fname)
# in /etc ? # in /etc ?