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 committed 2011-08-25 02:37:18 +01:00
1 parent 311d28fcd7
commit 2695821e98
1 file changed
+2 -1
+2 -1
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