From ff9fdc078f883f6dba57513d182bab969794f4de Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sun, 1 Nov 2015 20:33:24 +0800 Subject: add Formula#bottle_defined? --- Library/Homebrew/software_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Homebrew/software_spec.rb') diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index d2c811b69..92b6b7a9c 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -75,6 +75,10 @@ class SoftwareSpec @bottle_disable_reason end + def bottle_defined? + bottle_specification.collector.keys.any? + end + def bottled? bottle_specification.tag?(bottle_tag) && \ (bottle_specification.compatible_cellar? || ARGV.force_bottle?) -- cgit v1.2.3