rpmlint/no-badness-return.diff

27 lines
851 B
Diff
Raw Normal View History

Index: Filter.py
===================================================================
--- Filter.py.orig
+++ Filter.py
@@ -112,7 +112,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()
Index: rpmlint
===================================================================
--- rpmlint.orig
+++ rpmlint
@@ -212,7 +212,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)