File stricter-interpreter-check.diff of Package rpmlint

Index: FilesCheck.py
===================================================================
--- FilesCheck.py.orig
+++ FilesCheck.py
@@ -1248,7 +1248,8 @@ class FilesCheck(AbstractCheck.AbstractC
                                      f.endswith('.la')):
                                 printError(pkg, 'script-without-shebang', f)
 
-                            if mode & 0111 == 0 and not is_doc:
+                            if mode & 0111 == 0 and not is_doc and \
+                                    interpreter and interpreter.startswith("/"):
                                 printError(pkg, 'non-executable-script', f,
                                            oct(perm), interpreter)
                             if line.endswith('\r\n') or line.endswith('\r'):
openSUSE Build Service is sponsored by