forked from pool/rpmlint
Dirk Mueller
15bad7fc73
* New Homepage * Plenty of new checks - add compressed-backup-regex.diff - remove python3_magic_number_fix.diff OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint?expand=0&rev=189
15 lines
703 B
Diff
15 lines
703 B
Diff
Index: FilesCheck.py
|
|
===================================================================
|
|
--- FilesCheck.py.orig
|
|
+++ FilesCheck.py
|
|
@@ -1242,7 +1242,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 '\r' in chunk:
|