Only use the bottle if its version is up-to-date

Rationale: if you edit a formula to use a different source URL it should build that and not the pour the bottle. Obviously.
This commit is contained in:
Max Howell 2011-08-25 02:37:18 +01:00
parent 4f03ad225e
commit be79906b62

View File

@ -14,7 +14,8 @@ class FormulaInstaller
@f = ff
@show_header = true
@ignore_deps = ARGV.include? '--ignore-dependencies' || ARGV.interactive?
@install_bottle = !ff.bottle.nil? && !ARGV.build_from_source?
@install_bottle = !ff.bottle.nil? && !ARGV.build_from_source? &&
Pathname.new(ff.bottle).version == ff.version
end
def install