diff options
| author | Mike McQuaid | 2016-01-09 11:07:40 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-02-18 10:21:20 +0000 |
| commit | f2faf49e3f189885c6787f7d4beb680c3a987d4f (patch) | |
| tree | abcfe376f758fab04d9d392f4fa95dd1c7952dad /Library/Homebrew | |
| parent | c5ec986c72c6b65b954af1eb3ea7bf9d96f40a67 (diff) | |
| download | brew-f2faf49e3f189885c6787f7d4beb680c3a987d4f.tar.bz2 | |
formula_installer: use new pour_bottle DSL.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 5c6637261..5f66b93e7 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -85,7 +85,15 @@ class FormulaInstaller return false unless options.empty? return false if formula.bottle_disabled? return true if formula.local_bottle_path - return false unless formula.pour_bottle? + unless formula.pour_bottle? + if install_bottle_options[:warn] && formula.pour_bottle_check_unsatisfied_reason + opoo <<-EOS.undent + Building #{formula.full_name} from source: + #{formula.pour_bottle_check_unsatisfied_reason} + EOS + end + return false + end unless bottle.compatible_cellar? if install_bottle_options[:warn] |
