From 22da8eb6331b4810497fb35018cd63e66aa464be Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 1 Sep 2013 13:54:21 +0100 Subject: [PATCH] brew-reinstall: don't try and rebuild bottles. --- Library/Homebrew/cmd/reinstall.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index e5ba1c8f4a..419620fa14 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*' '}"