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