diff options
| author | Charlie Sharpsteen | 2011-11-26 21:03:46 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-11-27 14:37:31 -0800 |
| commit | 3edc9d212b4885568ade6ac79f9cdf34ac3373d5 (patch) | |
| tree | 918539b168785a42432e75406678b53fe89f748b /Library/Formula/cpptest.rb | |
| parent | c3307a5a960f760b1687bd304683d9b6f4aa2058 (diff) | |
| download | homebrew-3edc9d212b4885568ade6ac79f9cdf34ac3373d5.tar.bz2 | |
Re-work ARGV filtering to properly handle --HEAD
Previously, stripping arguments like `--HEAD` for dependencies failed because
that flag affects the installation prefix encoded into formula objects. The
previous implementation of `ARGV` filtering tried to contain all changes to a
single method call before the `FormulaInstaller` forks. This update spreads
things out a bit:
- The Homebrew `ARGV` extension adds a new method, `filter_for_dependencies`
which strips flags like `--HEAD`, yields to a block, then restores the
original contents of ARGV.
- The `explicitly_requested?` test, which returns true or false depending on
if a formula object is a member of `ARGV.formulae`, is now a method of
`Formula` objects.
- `FormulaInstaller` objects now execute the installation of dependencies
inside an `ARGV.filter_for_dependencies` block if the dependency was
`explicitly_requested?`.
Fixes #8668.
Closes #7724.
Diffstat (limited to 'Library/Formula/cpptest.rb')
0 files changed, 0 insertions, 0 deletions
