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(-)
|
|
|
|
|
|
|
|
diff --git a/Filter.py b/Filter.py
|
2015-11-26 11:24:13 +01:00
|
|
|
index 5ce6219..e50abe1 100644
|
2015-04-10 16:35:46 +02:00
|
|
|
--- a/Filter.py
|
|
|
|
+++ b/Filter.py
|
2015-11-26 11:24:13 +01:00
|
|
|
@@ -128,7 +128,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()
|
2015-04-10 16:35:46 +02:00
|
|
|
diff --git a/rpmlint b/rpmlint
|
2015-11-26 11:24:13 +01:00
|
|
|
index acbda29..810d677 100755
|
2015-04-10 16:35:46 +02:00
|
|
|
--- a/rpmlint
|
|
|
|
+++ b/rpmlint
|
2015-11-26 11:24:13 +01:00
|
|
|
@@ -203,7 +203,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
|
|
|
|