aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/software_spec.rb
diff options
context:
space:
mode:
authorXu Cheng2015-11-01 20:33:24 +0800
committerMike McQuaid2015-11-01 08:22:18 -0800
commitff9fdc078f883f6dba57513d182bab969794f4de (patch)
tree2989121c551c801aaba54496e58d1d2b924e6b37 /Library/Homebrew/software_spec.rb
parent593dff3dc1d038475acdd1f1503e60d7cfb2605b (diff)
downloadbrew-ff9fdc078f883f6dba57513d182bab969794f4de.tar.bz2
add Formula#bottle_defined?
Diffstat (limited to 'Library/Homebrew/software_spec.rb')
-rw-r--r--Library/Homebrew/software_spec.rb4
1 files changed, 4 insertions, 0 deletions
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?)