Ludwig Nussel
5ad6c8a066
+ add ghost file checks + print names of failed tests - fix update_git.sh - make sure tmpfiles are listed in %files (add-check-for-tmpfiles-created-at-r.diff) - don't complain about missingok ghost files (fix-ghost-file-handling.diff) - remove obsolete check for %defattr in spec files (remove-files-attr-not-set-check.diff) OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=328
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
From: Some One <nobody@opensuse.org>
|
|
Date: Thu, 9 Apr 2015 14:55:39 +0200
|
|
Subject: [PATCH] no-badness-return.diff
|
|
|
|
===================================================================
|
|
---
|
|
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():
|
|
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()
|
|
diff --git a/rpmlint b/rpmlint
|
|
index aa37c3a..8853e79 100755
|
|
--- a/rpmlint
|
|
+++ b/rpmlint
|
|
@@ -202,7 +202,7 @@ def main():
|
|
% (packages_checked, specfiles_checked,
|
|
printed_messages["E"], printed_messages["W"]))
|
|
|
|
- if printed_messages["E"] > 0:
|
|
+ if badnessThreshold() < 0 and printed_messages["E"] > 0:
|
|
sys.exit(64)
|
|
sys.exit(0)
|
|
|