Commit 0b0d41cd authored by PJ Eby's avatar PJ Eby

Preserve timestamps and permissions when "unpacking" (copying) a

directory tree.

--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043114
parent 72930bc0
......@@ -100,9 +100,9 @@ def unpack_directory(filename, extract_dir, progress_filter=default_filter):
if not target:
continue # skip non-files
ensure_directory(target)
shutil.copyfile(os.path.join(base,f), target)
f = os.path.join(base,f)
shutil.copyfile(f, target)
shutil.copystat(f, target)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment