Give this condition a more revealing name

This commit is contained in:
Jack Nagel 2013-09-21 19:27:24 -05:00
parent 36f3617494
commit 2eefba005f
2 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,7 @@ def install_bottle? f, options={:warn=>false}
return false if ARGV.build_from_source?
return true if ARGV.force_bottle?
return false unless f.pour_bottle?
return false unless f.build.used_options.empty?
return false unless f.default_build?
return false unless bottle_current?(f)
if f.bottle.cellar != :any && f.bottle.cellar != HOMEBREW_CELLAR.to_s
if options[:warn]

View File

@ -88,6 +88,12 @@ class Formula
end
end
def default_build?
build = self.class.build.dup
build.concat(stable.options)
build.used_options.empty?
end
def url; active_spec.url; end
def version; active_spec.version; end
def mirrors; active_spec.mirrors; end