diff options
| author | Martin Afanasjew | 2015-12-15 05:36:05 +0100 |
|---|---|---|
| committer | Martin Afanasjew | 2015-12-15 05:36:05 +0100 |
| commit | a4a2b305f25d0df8929a7af27ba139036435781d (patch) | |
| tree | 237570a795c55bc65940f27a4bf8f54e1e4d4b13 /Library | |
| parent | f1ac9b5776bbd49c9ce71b4ddf138bcc61b9b8f6 (diff) | |
| download | brew-a4a2b305f25d0df8929a7af27ba139036435781d.tar.bz2 | |
formula_installer: prefer 'Dependable#run?'
Both `req.tags.include?(:run)` and `req.run?` are currently equivalent,
but the latter relies less on implementation details.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 7180dc7fd..0a483201f 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -286,7 +286,7 @@ class FormulaInstaller def install_requirement_default_formula?(req, dependent, build) return false unless req.default_formula? return true unless req.satisfied? - return false if req.tags.include?(:run) + return false if req.run? install_bottle_for?(dependent, build) || build_bottle? end |
