Skip to content

Commit

Permalink
Merge pull request #10 from PanDAWMS/flin
Browse files Browse the repository at this point in the history
v2.0.1; copy files repesct selinux context of destination directory
  • Loading branch information
mightqxc authored Jan 29, 2024
2 parents 261314c + cc8ec80 commit 2d863e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/hgcs/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion pkg_info.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release_version = "2.0.0"
release_version = "2.0.1"

0 comments on commit 2d863e3

Please sign in to comment.