summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohn W. Parent <45471568+johnwparent@users.noreply.github.com>2024-04-08 17:10:02 -0400
committerGitHub <noreply@github.com>2024-04-08 14:10:02 -0700
commitd5c886494200896f21cfcddee8453a56802fcf68 (patch)
tree9a883eb3e7fbe46a4dcc394cf1c639c9eb7f9ab5 /bin
parentb3cef1072d4ed08fe67705d8301a5a61c06008c2 (diff)
downloadspack-d5c886494200896f21cfcddee8453a56802fcf68.tar.gz
spack-d5c886494200896f21cfcddee8453a56802fcf68.tar.bz2
spack-d5c886494200896f21cfcddee8453a56802fcf68.tar.xz
spack-d5c886494200896f21cfcddee8453a56802fcf68.zip
Windows bugfix: safe rename if renaming file onto itself (#43456)
* Generally use os.replace on Windows and Linux * Windows behavior for os.replace differs when the destination exists and is a symlink to a directory: on Linux the dst is replaced and on Windows this fails - this PR makes Windows behave like Linux (by deleting the dst before doing the rename unless src and dst are the same)
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions