forked from pool/rpmlint
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
31 lines
766 B
Diff
31 lines
766 B
Diff
From: Some One <nobody@opensuse.org>
|
|
Date: Thu, 9 Apr 2015 14:55:39 +0200
|
|
Subject: [PATCH] filename-non-utf8-exception.diff
|
|
|
|
===================================================================
|
|
---
|
|
Filter.py | 10 ++--------
|
|
1 file changed, 2 insertions(+), 8 deletions(-)
|
|
|
|
diff --git a/Filter.py b/Filter.py
|
|
index 40fbf79..37ba038 100644
|
|
--- a/Filter.py
|
|
+++ b/Filter.py
|
|
@@ -23,14 +23,8 @@ _diagnostic = list()
|
|
_badness_score = 0
|
|
printed_messages = {"I": 0, "W": 0, "E": 0}
|
|
|
|
-if sys.stdout.isatty():
|
|
- def __print(s):
|
|
- print(s)
|
|
-else:
|
|
- def __print(s):
|
|
- if isinstance(s, unicode):
|
|
- s = s.encode(locale.getpreferredencoding(), "replace")
|
|
- print(s)
|
|
+def __print(s):
|
|
+ print(s)
|
|
|
|
|
|
def printInfo(pkg, reason, *details):
|