From 2b9a2833bc3c6bc8e7b7344e8178ce98e29ebe4b Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 21 Jul 2016 14:38:59 +0800 Subject: [PATCH] add BuildOptions#build_bottle? This makes BuildOptions more compatible with Tab object. Otherwise, `brew reinstall foo` will just crash if foo is not installed. --- Library/Homebrew/build_options.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb index 9ceeab3947..6be4a18b5c 100644 --- a/Library/Homebrew/build_options.rb +++ b/Library/Homebrew/build_options.rb @@ -47,6 +47,7 @@ class BuildOptions def bottle? include? "build-bottle" end + alias_method :build_bottle?, :bottle? # True if a {Formula} is being built with {Formula.head} instead of {Formula.stable}. #
args << "--some-new-stuff" if build.head?