2015-04-10 16:35:46 +02: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 14:32:03 +02:00
|
|
|
===================================================================
|
2015-04-10 16:35:46 +02:00
|
|
|
---
|
|
|
|
Filter.py | 2 +-
|
|
|
|
rpmlint | 2 +-
|
|
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
2019-01-13 15:33:18 +01:00
|
|
|
Index: rpmlint-rpmlint-1.11/Filter.py
|
2017-09-28 13:35:09 +02:00
|
|
|
===================================================================
|
2019-01-13 15:33:18 +01:00
|
|
|
--- rpmlint-rpmlint-1.11.orig/Filter.py
|
|
|
|
+++ rpmlint-rpmlint-1.11/Filter.py
|
2017-09-28 13:35:09 +02:00
|
|
|
@@ -130,7 +130,7 @@ def printAllReasons():
|
2010-04-01 16:20:38 +02: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()
|
2019-01-13 15:33:18 +01:00
|
|
|
Index: rpmlint-rpmlint-1.11/rpmlint
|
2017-09-28 13:35:09 +02:00
|
|
|
===================================================================
|
2019-01-13 15:33:18 +01:00
|
|
|
--- rpmlint-rpmlint-1.11.orig/rpmlint
|
|
|
|
+++ rpmlint-rpmlint-1.11/rpmlint
|
|
|
|
@@ -207,7 +207,7 @@ def main():
|
2008-06-25 19:08:32 +02:00
|
|
|
% (packages_checked, specfiles_checked,
|
2014-02-21 15:54:14 +01:00
|
|
|
printed_messages["E"], printed_messages["W"]))
|
2008-06-25 19:08:32 +02:00
|
|
|
|
2010-01-27 18:18:50 +01:00
|
|
|
- if printed_messages["E"] > 0:
|
|
|
|
+ if badnessThreshold() < 0 and printed_messages["E"] > 0:
|
2008-06-25 19:08:32 +02:00
|
|
|
sys.exit(64)
|
2009-08-28 22:12:54 +02:00
|
|
|
sys.exit(0)
|
2009-09-16 18:41:21 +02:00
|
|
|
|