salimma / rpms / rpmlint

Forked from rpms/rpmlint 4 years ago
Clone
Blob Blame History Raw
diff -up rpmlint-1.3/FilesCheck.py.ghostfix rpmlint-1.3/FilesCheck.py
--- rpmlint-1.3/FilesCheck.py.ghostfix	2011-10-12 14:46:28.290703772 -0400
+++ rpmlint-1.3/FilesCheck.py	2011-10-12 14:46:35.254619020 -0400
@@ -748,7 +748,7 @@ class FilesCheck(AbstractCheck.AbstractC
                 res = man_base_regex.search(f)
                 if res:
                     man_basenames.add(res.group(1))
-                    if use_utf8:
+                    if use_utf8 and chunk:
                         # TODO: better shell escaping or seq based invocation
                         cmd = commands.getstatusoutput(
                             'env LC_ALL=C %s "%s" | gtbl | '
@@ -807,7 +807,7 @@ class FilesCheck(AbstractCheck.AbstractC
                             fsf_wrong_address_regex.search(chunk):
                         printError(pkg, 'incorrect-fsf-address', f)
 
-                elif is_doc and compr_regex.search(f):
+                elif is_doc and chunk and compr_regex.search(f):
                     ff = compr_regex.sub('', f)
                     if not skipdocs_regex.search(ff):
                         # compressed docs, eg. info and man files etc