15 lines
686 B
Diff
15 lines
686 B
Diff
diff -up rpmlint-1.4/FilesCheck.py.ruby-ri-files rpmlint-1.4/FilesCheck.py
|
|
--- rpmlint-1.4/FilesCheck.py.ruby-ri-files 2012-09-06 15:39:40.348664465 -0400
|
|
+++ rpmlint-1.4/FilesCheck.py 2012-09-06 15:40:16.231664959 -0400
|
|
@@ -273,6 +273,10 @@ def peek(filename, pkg, length=1024):
|
|
if not chunk: # Empty files are considered text
|
|
return (chunk, True)
|
|
|
|
+ # RI files generated by RDoc are always binary
|
|
+ if re.search(r'.*\/ri\/.*\.ri$', filename.lower()):
|
|
+ return (chunk, False)
|
|
+
|
|
# PDF's are binary but often detected as text by the algorithm below
|
|
if filename.lower().endswith('.pdf') and chunk.startswith('%PDF-'):
|
|
return (chunk, False)
|