forked from pool/rpmlint
Dirk Mueller
73364494d6
* Add --rawout option * Warn about non-ghost files in /var/run and /var/lock * Fix setting message type for reasons with badness threshold defined * Use "declare -F" instead of "type" to check if a bash function exists. OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=56
18 lines
386 B
Diff
18 lines
386 B
Diff
--- Filter.py
|
|
+++ Filter.py
|
|
@@ -24,12 +24,8 @@
|
|
_badness_score = 0
|
|
printed_messages = { "I": 0, "W": 0, "E": 0 }
|
|
|
|
-if sys.stdout.isatty():
|
|
- def __print(s):
|
|
- print(s)
|
|
-else:
|
|
- def __print(s):
|
|
- print(s.encode(locale.getpreferredencoding(), "replace"))
|
|
+def __print(s):
|
|
+ print(s)
|
|
|
|
def printInfo(pkg, reason, *details):
|
|
_print("I", pkg, reason, details)
|