Commit cc120286 authored by Bernardo Dal Seno's avatar Bernardo Dal Seno Committed by Iustin Pop
Browse files

Makefile.am: fix permissions for Python scripts on install



Some Python scripts in /usr/lib/ganeti/ were getting the wrong permissions
(their 'x' bit was cleared).  This patch fixes that behavior.

This patch renames the variable 'dist_tools_PYTHON' to 'python_scripts'.
Some Python scripts were listed in the 'dist_tools_PYTHON' variable, but as
said scripts have no .py extension in their names, Automake treated the scripts
as data files, and hence no 'x' bit.  Now the Python scripts are processed
by the rules created for the 'dist_tools_SCRIPTS' variable, and such rules
don't depend on file name extensions.
Signed-off-by: default avatarBernardo Dal Seno <bdalseno@google.com>
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 0f796800
......@@ -515,7 +515,7 @@ nodist_sbin_SCRIPTS = \
$(PYTHON_BOOTSTRAP_SBIN) \
daemons/ganeti-cleaner
dist_tools_PYTHON = \
python_scripts = \
tools/burnin \
tools/cfgshell \
tools/cfgupgrade \
......@@ -529,7 +529,7 @@ dist_tools_PYTHON = \
tools/sanitize-config
dist_tools_SCRIPTS = \
$(dist_tools_PYTHON) \
$(python_scripts) \
tools/kvm-console-wrapper \
tools/xm-console-wrapper \
tools/master-ip-setup
......@@ -766,7 +766,7 @@ TESTS_ENVIRONMENT = \
all_python_code = \
$(dist_sbin_SCRIPTS) \
$(dist_tools_PYTHON) \
$(python_scripts) \
$(pkglib_python_scripts) \
$(nodist_pkglib_python_scripts) \
$(python_tests) \
......@@ -805,7 +805,7 @@ lint_python_code = \
ganeti \
ganeti/http/server.py \
$(dist_sbin_SCRIPTS) \
$(dist_tools_PYTHON) \
$(python_scripts) \
$(pkglib_python_scripts) \
$(BUILD_BASH_COMPLETION) \
$(CHECK_IMPORTS) \
......@@ -821,7 +821,7 @@ pep8_python_code = \
ganeti \
ganeti/http/server.py \
$(dist_sbin_SCRIPTS) \
$(dist_tools_PYTHON) \
$(python_scripts) \
$(pkglib_python_scripts) \
$(BUILD_BASH_COMPLETION) \
$(CHECK_HEADER) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment