From cc8ec80bfd477bc9cdf14d553ab805845561bfcd Mon Sep 17 00:00:00 2001 From: mightqxc Date: Mon, 29 Jan 2024 15:26:15 +0100 Subject: [PATCH] v2.0.1; copy files repesct selinux context of destination directory --- lib/hgcs/agents.py | 4 ++-- pkg_info.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hgcs/agents.py b/lib/hgcs/agents.py index 40a49fc..d6fc72e 100644 --- a/lib/hgcs/agents.py +++ b/lib/hgcs/agents.py @@ -166,7 +166,7 @@ def via_system(self, job, symlink_mode=False): ret_val = False self.logger.error(f"{dest_path} made but not found") else: - shutil.copy2(src_path, dest_path) + shutil.copy(src_path, dest_path) if os.path.isfile(dest_path): self.logger.debug(f"{dest_path} copy made") else: @@ -363,7 +363,7 @@ def via_system(self, job): self.logger.debug(f"{dest_path} file already exists. Skipped...") return True try: - shutil.copy2(src_path, dest_path) + shutil.copy(src_path, dest_path) if os.path.isfile(dest_path): os.chmod(dest_path, 0o644) self.logger.debug(f"{dest_path} copy made") diff --git a/pkg_info.py b/pkg_info.py index 1b7cbed..5b7bb79 100644 --- a/pkg_info.py +++ b/pkg_info.py @@ -1 +1 @@ -release_version = "2.0.0" +release_version = "2.0.1"