Skip to content

Commit

Permalink
Make the installer copy mode bits when it installs resources
Browse files Browse the repository at this point in the history
Signed-off-by: Mic Bowman <[email protected]>
  • Loading branch information
cmickeyb authored and prakashngit committed Oct 19, 2023
1 parent 328f322 commit 4492f2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/pdo/client/builder/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

# -----------------------------------------------------------------
# -----------------------------------------------------------------
Expand All @@ -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()
Expand Down

0 comments on commit 4492f2c

Please sign in to comment.