mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 18:50:38 +03:00
appliers/file_cp.py: fix file copy
This commit is contained in:
parent
2c71b5e53a
commit
1bf898f1d0
@ -111,7 +111,7 @@ class Files_cp:
|
||||
|
||||
try:
|
||||
targetFile = self.get_target_file(self.targetPath, fromFile)
|
||||
if not targetFile and not targetFile.exists():
|
||||
if targetFile and not targetFile.exists():
|
||||
self.copy_target_file(targetFile, fromFile)
|
||||
if self.username:
|
||||
shutil.chown(targetFile, self.username)
|
||||
|
Loading…
x
Reference in New Issue
Block a user