diff options
| author | Xu Cheng | 2016-07-21 14:38:59 +0800 | 
|---|---|---|
| committer | Xu Cheng | 2016-07-21 14:38:59 +0800 | 
| commit | 2b9a2833bc3c6bc8e7b7344e8178ce98e29ebe4b (patch) | |
| tree | 75537d09ff3e4ff05104acaa4b571bc93c88b142 | |
| parent | 8b9ce59ce4b29d2ca761ebdc2acf4dcec3264eef (diff) | |
| download | brew-2b9a2833bc3c6bc8e7b7344e8178ce98e29ebe4b.tar.bz2 | |
add BuildOptions#build_bottle?
This makes BuildOptions more compatible with Tab object. Otherwise,
`brew reinstall foo` will just crash if foo is not installed.
| -rw-r--r-- | Library/Homebrew/build_options.rb | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/Library/Homebrew/build_options.rb b/Library/Homebrew/build_options.rb index 9ceeab394..6be4a18b5 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}.    # <pre>args << "--some-new-stuff" if build.head?</pre> | 
