2010-10-14 14:32:03 +02:00
|
|
|
Index: FilesCheck.py
|
|
|
|
===================================================================
|
|
|
|
--- FilesCheck.py.orig
|
2010-04-26 23:35:02 +02:00
|
|
|
+++ FilesCheck.py
|
2011-04-21 12:12:02 +02:00
|
|
|
@@ -1261,7 +1261,8 @@ class FilesCheck(AbstractCheck.AbstractC
|
|
|
|
f.endswith('.la')):
|
|
|
|
printError(pkg, 'script-without-shebang', f)
|
2010-04-26 23:35:02 +02:00
|
|
|
|
2011-04-21 12:12:02 +02:00
|
|
|
- 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 '\r' in chunk:
|