1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Added implementation of using executable bit in file copy applier

This commit is contained in:
Evgeny Sinelnikov 2023-03-19 01:52:33 +04:00
parent d54cd790b1
commit fa315bb599

View File

@ -47,6 +47,7 @@ class Files_cp:
self.archive = str2bool(file_obj.archive)
self.hidden = str2bool(file_obj.hidden)
self.suppress = str2bool(file_obj.suppress)
self.executable = str2bool(file_obj.executable)
self.username = username
self.fromPathFiles = list()
if self.fromPath:
@ -100,6 +101,8 @@ class Files_cp:
log('W15', logdata)
def set_exe_file(self, targetFile, fromFile):
if self.executable:
return True
if Path(fromFile).suffix in self.exe_check.get_list_markers():
targetPath = targetFile.parent
for i in self.exe_check.get_list_paths():