aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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*' '}"