2015-04-10 14:35:46 +00:00
|
|
|
From a6b4dc66618b5284b1e705393111cb26092009d6 Mon Sep 17 00:00:00 2001
|
|
|
|
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(-)
|
|
|
|
|
|
|
|
diff --git a/Filter.py b/Filter.py
|
|
|
|
index eaa8384..40fbf79 100644
|
|
|
|
--- a/Filter.py
|
|
|
|
+++ b/Filter.py
|
|
|
|
@@ -120,7 +120,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()
|
2015-04-10 14:35:46 +00:00
|
|
|
diff --git a/rpmlint b/rpmlint
|
|
|
|
index aa37c3a..8853e79 100755
|
|
|
|
--- a/rpmlint
|
|
|
|
+++ b/rpmlint
|
|
|
|
@@ -202,7 +202,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
|
|
|
|