conda/conda — pull request #622 by dan-blanchard (2014-03-26 20:57:34+00:00)
Title: Stop update_prefix from breaking hard links

As we can see [here](https://github.com/conda/conda/blob/master/conda/install.py#L179), if a package has hard links that contain `prefix_placeholder`, the hard links will be broken because `os.unlink` is being explicitly called to wipe out the old version of the file. Opening the file with `wb` as the mode automatically truncates the file to zero bytes anyway, so this was unnecessary.

Without this fix, some packages (e.g., `automake`) failed to work in some cases because only one name for a given inode/file was being updated, and then the link was broken, leaving the other files with `/opt/anaconda1ananconda2anaconda3` in them.