aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Acceptable-Formulae.md
diff options
context:
space:
mode:
authorMike McQuaid2016-12-31 16:38:05 +0000
committerMike McQuaid2016-12-31 16:38:05 +0000
commita571965df9d5dc84d1a32630a111768fbac71b3b (patch)
treecd11f14a245c60e6f6de13ebd97bf9e11341c793 /docs/Acceptable-Formulae.md
parentb1e27d689d8eadb267fb9890ec2e0a2a87e46b4e (diff)
downloadbrew-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/Acceptable-Formulae.md')
0 files changed, 0 insertions, 0 deletions