conda/conda — pull request #710 by ilanschnell (2014-05-05 13:56:49+00:00)
Title: Binary replace in has_prefix

This PR extends the current has_prefix file to allow binary replacement, as well as using a different placeholder. Currently, each line in has_prefix only contains the filename to which text replacement of /opt/anaconda1anaconda2anaconda3 will be applied, which will become the default. In addition, each line may contain the placeholder and the a string indicating text or binary, where binary replacement is taking into account null terminators and padding.
Here is an example of the new format of has_prefix:

```
bin/foo
/some_other_placeholder_prefix binary bin/bar
/some_other_placeholder_prefix text bin/baz
```

The first line replaces the default placeholder (using text mode) in bin/foo. This would be equivalent of having `/opt/anaconda1anaconda2anaconda3` text `bin/foo`
The second line replaces the alternate placeholder in the binary file `bin/bar`.
The third line the alternate placeholder in the text file `bin/baz`.