From be79906b62e46a677ada275850e514154454bdb8 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 25 Aug 2011 02:37:18 +0100 Subject: 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.--- Library/Homebrew/formula_installer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index e25f28011..131366497 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -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 -- cgit v1.2.3