mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-08-31 01:02:04 +08:00
Preserve loc permissions
This commit is contained in:
@@ -289,7 +289,9 @@ class DataTable:
|
||||
Color.print("Changes to .loc file:", Color.CYAN, flush=True)
|
||||
subprocess.call(["diff", "-u", self.loc_file_path, self.new_loc_file_path])
|
||||
if commit:
|
||||
os.rename(self.new_loc_file_path, self.loc_file_path)
|
||||
dest_stat = os.stat(self.loc_file_path)
|
||||
shutil.move(self.new_loc_file_path, self.loc_file_path)
|
||||
os.chmod(self.loc_file_path, dest_stat.st_mode)
|
||||
else:
|
||||
os.unlink(self.new_loc_file_path)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user