mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-08-25 09:49:53 +03:00
appliers/file_cp.py: change string to int argument for chmod to octal int
This commit is contained in:
committed by
Valery Sinelnikov
parent
5be7cc14b0
commit
45bf77a64a
@ -77,9 +77,9 @@ class Files_cp:
|
|||||||
|
|
||||||
def set_read_only(self, targetFile):
|
def set_read_only(self, targetFile):
|
||||||
if self.readOnly:
|
if self.readOnly:
|
||||||
shutil.os.chmod(targetFile, int('444', base = 8))
|
shutil.os.chmod(targetFile, 0o444)
|
||||||
else:
|
else:
|
||||||
shutil.os.chmod(targetFile, int('664', base = 8))
|
shutil.os.chmod(targetFile, 0o664)
|
||||||
|
|
||||||
def _create_action(self):
|
def _create_action(self):
|
||||||
for fromFile in self.fromPathFiles:
|
for fromFile in self.fromPathFiles:
|
||||||
|
Reference in New Issue
Block a user