]> granicus.if.org Git - python/commit
[Bug #220993; may also fix bug #479469] Fix flakiness when old
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 1 Feb 2002 18:29:34 +0000 (18:29 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 1 Feb 2002 18:29:34 +0000 (18:29 +0000)
commit3b388ec8b3a45ae45c0934ac04627e247762293c
tree4c29d3fe7081119ddb828222d26336737a3881ab
parent8cb6540652292991b8d1af4b66c125f270a094bf
[Bug #220993; may also fix bug #479469] Fix flakiness when old
  installations are present, by always unlinking the destination file
  before copying to it.  Without the unlink(), the copied file remains
  owned by its previous UID, causing the subsequent chmod() to fail.

Bugfix candidate, though it may cause changes on platforms where
  file ownership behaves differently.
Lib/distutils/file_util.py