diff options
| author | Mike McQuaid | 2015-03-24 12:11:40 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-03-24 12:11:40 +0000 |
| commit | 49d0e7a609c5a01ca382c617472250b8d5643b6c (patch) | |
| tree | d33d09745cc58d2d2e3fda2ba08a9ea9465ddfaa /Library/Homebrew/cmd/upgrade.rb | |
| parent | 2d290ddfba4b754823a1ad581db0c1f8a4a2dc45 (diff) | |
| download | homebrew-49d0e7a609c5a01ca382c617472250b8d5643b6c.tar.bz2 | |
reinstall, upgrade: tweak use of tab build_bottle.
In the case where a bottle wasn't around before and is now it probably
doesn't make sense to use `build-bottle` to build something that will
be identical to the binary bottle package anyway. After all, when you
use the bottle you will end up with something that has been built with
`build-bottle` anyway (just not by you).
Diffstat (limited to 'Library/Homebrew/cmd/upgrade.rb')
| -rw-r--r-- | Library/Homebrew/cmd/upgrade.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb index 8b30ba59c..10d323b14 100644 --- a/Library/Homebrew/cmd/upgrade.rb +++ b/Library/Homebrew/cmd/upgrade.rb @@ -52,7 +52,7 @@ module Homebrew fi = FormulaInstaller.new(f) fi.options = tab.used_options - fi.build_bottle = ARGV.build_bottle? || tab.build_bottle? + fi.build_bottle = ARGV.build_bottle? || (!f.bottled? && tab.build_bottle?) fi.build_from_source = ARGV.build_from_source? fi.verbose = ARGV.verbose? fi.quieter = ARGV.quieter? |
