salimma / rpms / rpmlint

Forked from rpms/rpmlint 4 years ago
Clone
Blob Blame History Raw
diff -up rpmlint-1.4/BinariesCheck.py.luafix rpmlint-1.4/BinariesCheck.py
--- rpmlint-1.4/BinariesCheck.py.luafix	2013-04-01 10:23:00.926765119 -0400
+++ rpmlint-1.4/BinariesCheck.py	2013-04-01 10:25:05.553760664 -0400
@@ -231,7 +231,8 @@ class BinariesCheck(AbstractCheck.Abstra
             is_elf = 'ELF' in pkgfile.magic
             is_ar = 'current ar archive' in pkgfile.magic
             is_ocaml_native = 'Objective caml native' in pkgfile.magic
-            is_binary = is_elf or is_ar or is_ocaml_native
+            is_lua_bytecode = 'Lua bytecode' in pkgfile.magic
+            is_binary = is_elf or is_ar or is_ocaml_native or is_lua_bytecode
 
             if not is_binary:
                 if reference_regex.search(fname):
@@ -269,7 +270,7 @@ class BinariesCheck(AbstractCheck.Abstra
             if pkg.arch == 'sparc' and sparc_regex.search(pkgfile.magic):
                 printError(pkg, 'non-sparc32-binary', fname)
 
-            if is_ocaml_native or fname.endswith('.o') or \
+            if is_ocaml_native or is_lua_bytecode or fname.endswith('.o') or \
                     fname.endswith('.static'):
                 continue