diff options
| author | Mike McQuaid | 2016-12-31 16:38:05 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2016-12-31 16:38:05 +0000 | 
| commit | a571965df9d5dc84d1a32630a111768fbac71b3b (patch) | |
| tree | cd11f14a245c60e6f6de13ebd97bf9e11341c793 /docs/Homebrew-and-Python.md | |
| parent | b1e27d689d8eadb267fb9890ec2e0a2a87e46b4e (diff) | |
| download | brew-a571965df9d5dc84d1a32630a111768fbac71b3b.tar.bz2 | |
formula: make prefix usually return opt_prefix.
Return `opt_prefix` if it exists and `prefix` is not called from within
the same formula's `install` or `post_install` methods. Otherwise, fall
back to the existing functionality.
This avoids the need to use `opt_prefix` etc. everywhere and generally
means we don't expose an implementation detail (i.e. the full Cellar
path) to dependents that have a habit of hard-coding it.
Diffstat (limited to 'docs/Homebrew-and-Python.md')
0 files changed, 0 insertions, 0 deletions
