From 5034f903b65e260aa5432f65f437301b65020019 Mon Sep 17 00:00:00 2001 From: topilski Date: Mon, 25 Dec 2017 16:12:31 +0300 Subject: [PATCH] +x for exec file --- base/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/utils.py b/base/utils.py index 00c02a6..4cd5807 100644 --- a/base/utils.py +++ b/base/utils.py @@ -2,6 +2,7 @@ import errno import os +import stat import re import shutil import subprocess @@ -110,6 +111,9 @@ def extract_file(path, current_dir): def build_command_configure(compiler_flags: CompileInfo, source_dir_path, prefix_path, executable='./configure'): # patches script_dir = os.path.dirname(source_dir_path) + # +x for exec file + st = os.stat(executable) + os.chmod(executable, st.st_mode | stat.S_IEXEC) for file_names in compiler_flags.patches(): scan_dir = os.path.join(script_dir, file_names)