Skip to content

Commit

Permalink
Merge pull request #3132 from msarahan/index_progress
Browse files Browse the repository at this point in the history
handle permission errors with move in index more gracefully
  • Loading branch information
msarahan authored Sep 11, 2018
2 parents 422b808 + 71f6619 commit 78eca53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conda_build/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,10 @@ def _maybe_write(path, content, write_newline_end=False, content_is_binary=False
os.unlink(temp_path)
return False
# log.info("writing %s", path)
move(temp_path, path)
try:
move(temp_path, path)
except PermissionError:
utils.copy_into(temp_path, path)
return True


Expand Down

0 comments on commit 78eca53

Please sign in to comment.