aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2013-09-01 13:54:21 +0100
committerMike McQuaid2013-09-01 13:57:40 +0100
commit22da8eb6331b4810497fb35018cd63e66aa464be (patch)
treea12d4a4faa707cb19e1afe9d6d4bd194e44444c1 /Library/Homebrew/cmd
parent98eac4226be22daa87fa912b49c1330495ab00d9 (diff)
downloadbrew-22da8eb6331b4810497fb35018cd63e66aa464be.tar.bz2
brew-reinstall: don't try and rebuild bottles.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/reinstall.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb
index e5ba1c8f4..419620fa1 100644
--- a/Library/Homebrew/cmd/reinstall.rb
+++ b/Library/Homebrew/cmd/reinstall.rb
@@ -18,7 +18,9 @@ module Homebrew extend self
ARGV << name
tab = Tab.for_name(name)
tab.used_options.each { |option| ARGV << option.to_s }
- ARGV << '--build-bottle' if tab.built_as_bottle
+ if tab.built_as_bottle and not tab.poured_from_bottle
+ ARGV << '--build-bottle'
+ end
# Todo: Be as smart as upgrade to restore the old state if reinstall fails.
self.uninstall
oh1 "Reinstalling #{name} #{ARGV.options_only*' '}"