diff options
| author | Max Howell | 2011-08-25 02:37:18 +0100 |
|---|---|---|
| committer | Max Howell | 2011-08-25 02:37:18 +0100 |
| commit | be79906b62e46a677ada275850e514154454bdb8 (patch) | |
| tree | 7f25e447680207489529e6175fb9db8e341af265 /Library | |
| parent | 4f03ad225efb65366ca83f6f9b8aea3bd5c75cb0 (diff) | |
| download | brew-be79906b62e46a677ada275850e514154454bdb8.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
