From 4492f2cfc519c0dfb05eed05a05963092e07ebd7 Mon Sep 17 00:00:00 2001 From: Mic Bowman Date: Thu, 19 Oct 2023 10:23:44 -0700 Subject: [PATCH] Make the installer copy mode bits when it installs resources Signed-off-by: Mic Bowman --- client/pdo/client/builder/installer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/pdo/client/builder/installer.py b/client/pdo/client/builder/installer.py index 0165dd04..776cbbce 100644 --- a/client/pdo/client/builder/installer.py +++ b/client/pdo/client/builder/installer.py @@ -38,11 +38,12 @@ def _copy_to_destination_(source_path, destination_path) : return dp = pathlib.Path(destination_path) - dp.mkdir(exist_ok=True) + dp.mkdir(parents=True, exist_ok=True) for f in source_path.iterdir() : logger.info('copy plugin resource {} to {}'.format(f.name, destination_path)) dp.joinpath(f.name).write_bytes(f.read_bytes()) + dp.joinpath(f.name).chmod(f.stat().st_mode) # ----------------------------------------------------------------- # ----------------------------------------------------------------- @@ -61,6 +62,7 @@ def install_plugin_resources() : created through the standard configuration modules. destinations can be overridden with the '--bind' arguments. """ + (state, bindings, args) = pshell.parse_shell_command_line(sys.argv[1:]) parser = argparse.ArgumentParser()