[Distutils] Two fixes (at last)
David Ascher
da@ski.org
Tue, 8 Jun 1999 09:58:05 -0700 (Pacific Daylight Time)
On Mon, 7 Jun 1999, Greg Ward wrote:
> Hope someone (Amos?) can try the new version under NT. Any takers for
> Mac OS?
One buglet: in util.py, copy_file, the order of the chmod and utime need
to be swapped to:
if preserve_times:
os.utime (dst, (st[ST_ATIME], st[ST_MTIME]))
if preserve_mode:
os.chmod (dst, S_IMODE (st[ST_MODE]))
(otherwise the chmod can prevent the utime from doing its thing).
--david