forked from pool/rpmlint
4d4e6f73c7
Copy from Base:System/rpmlint based on submit request 50483 from user prusnak OBS-URL: https://build.opensuse.org/request/show/50483 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=68
27 lines
860 B
Diff
27 lines
860 B
Diff
Index: Filter.py
|
|
===================================================================
|
|
--- Filter.py.orig
|
|
+++ Filter.py
|
|
@@ -104,7 +104,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.py
|
|
===================================================================
|
|
--- rpmlint.py.orig
|
|
+++ rpmlint.py
|
|
@@ -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)
|
|
|