SHA256
1
0
forked from pool/rpmlint
rpmlint/no-badness-return.diff
OBS User autobuild 698597df8c Accepting request 36612 from Base:System
Copy from Base:System/rpmlint based on submit request 36612 from user dirkmueller

OBS-URL: https://build.opensuse.org/request/show/36612
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint?expand=0&rev=55
2010-04-01 14:20:38 +00:00

23 lines
644 B
Diff

--- Filter.py
+++ Filter.py
@@ -104,7 +104,7 @@
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()
--- rpmlint.py
+++ rpmlint.py
@@ -201,7 +201,7 @@
% (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)