From a9efa754d845e6054930a6ad8e8f9a3f47193b36 Mon Sep 17 00:00:00 2001 From: gryf Date: Fri, 25 Apr 2008 06:53:56 +0000 Subject: [PATCH] * Of course, I forgot to change variable name :/ --- src/models/m_main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/models/m_main.py b/src/models/m_main.py index c882875..2610602 100644 --- a/src/models/m_main.py +++ b/src/models/m_main.py @@ -415,8 +415,9 @@ class MainModel(ModelMT): # Set correct owner, mtime and filemode on directories. for tarinfo in directories: try: - os.chown(os.path.join('.', tarinfo.name), t.uid) - os.utime(os.path.join('.', tarinfo.name), (0, t.mtime)) + os.chown(os.path.join('.', tarinfo.name), tarinfo.uid) + os.utime(os.path.join('.', tarinfo.name), + (0, tarinfo.mtime)) except OSError: if __debug__: print "m_main.py: open(): setting corrext owner,",