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-05-20 11:08:13 +02:00
|
|
|
@@ -1275,7 +1275,8 @@ class FilesCheck(AbstractCheck.AbstractC
|
2011-04-21 12:12:02 +02:00
|
|
|
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:
|