2015-04-10 14:35:46 +00:00
|
|
|
From: Some One <nobody@opensuse.org>
|
|
|
|
Date: Thu, 9 Apr 2015 14:55:39 +0200
|
|
|
|
Subject: [PATCH] no-badness-return.diff
|
|
|
|
|
2010-10-14 12:32:03 +00:00
|
|
|
===================================================================
|
2015-04-10 14:35:46 +00:00
|
|
|
---
|
|
|
|
Filter.py | 2 +-
|
|
|
|
rpmlint | 2 +-
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
2017-09-28 11:35:09 +00:00
|
|
|
Index: rpmlint-rpmlint-1.10/Filter.py
|
|
|
|
===================================================================
|
|
|
|
--- rpmlint-rpmlint-1.10.orig/Filter.py
|
|
|
|
+++ rpmlint-rpmlint-1.10/Filter.py
|
|
|
|
@@ -130,7 +130,7 @@ def printAllReasons():
|
2010-04-01 14:20:38 +00:00
|
|
|
if len(last_reason):
|
|
|
|
printDescriptions(last_reason)
|
|
|
|
last_reason = reason
|
|
|
|
- __print(diag)
|
|
|
|
+ __print(diag[:-1])
|
|
|
|
if Config.info and len(last_reason):
|
|
|
|
printDescriptions(last_reason)
|
|
|
|
_diagnostic = list()
|
2017-09-28 11:35:09 +00:00
|
|
|
Index: rpmlint-rpmlint-1.10/rpmlint
|
|
|
|
===================================================================
|
|
|
|
--- rpmlint-rpmlint-1.10.orig/rpmlint
|
|
|
|
+++ rpmlint-rpmlint-1.10/rpmlint
|
|
|
|
@@ -206,7 +206,7 @@ def main():
|
2008-06-25 17:08:32 +00:00
|
|
|
% (packages_checked, specfiles_checked,
|
2014-02-21 14:54:14 +00:00
|
|
|
printed_messages["E"], printed_messages["W"]))
|
2008-06-25 17:08:32 +00:00
|
|
|
|
2010-01-27 17:18:50 +00:00
|
|
|
- if printed_messages["E"] > 0:
|
|
|
|
+ if badnessThreshold() < 0 and printed_messages["E"] > 0:
|
2008-06-25 17:08:32 +00:00
|
|
|
sys.exit(64)
|
2009-08-28 20:12:54 +00:00
|
|
|
sys.exit(0)
|
2009-09-16 16:41:21 +00:00
|
|
|
|