mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 19:40:21 +01:00
* Of course, that os.chown ave 3 arguments, not two.
This commit is contained in:
@@ -415,7 +415,8 @@ class MainModel(ModelMT):
|
|||||||
# Set correct owner, mtime and filemode on directories.
|
# Set correct owner, mtime and filemode on directories.
|
||||||
for tarinfo in directories:
|
for tarinfo in directories:
|
||||||
try:
|
try:
|
||||||
os.chown(os.path.join('.', tarinfo.name), tarinfo.uid)
|
os.chown(os.path.join('.', tarinfo.name),
|
||||||
|
tarinfo.uid, tarinfo.gid)
|
||||||
os.utime(os.path.join('.', tarinfo.name),
|
os.utime(os.path.join('.', tarinfo.name),
|
||||||
(0, tarinfo.mtime))
|
(0, tarinfo.mtime))
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|||||||
Reference in New Issue
Block a user