diff options
| author | Mike McQuaid | 2013-07-04 11:23:47 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-07-04 11:32:50 +0100 |
| commit | a5c796b2cc4b6b0d061a2bab8481b4be3902fc31 (patch) | |
| tree | 8f66f85f4194347b401aff055aeac2412e8107fb /Library | |
| parent | 9dcbcc892a69a753dadaf1e86c8ba03bde8673a7 (diff) | |
| download | homebrew-a5c796b2cc4b6b0d061a2bab8481b4be3902fc31.tar.bz2 | |
bottles: only try f.bottle.revision if it exists.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/bottles.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 1bd6b0221..a15d65e85 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -7,7 +7,7 @@ require 'extend/ARGV' def bottle_filename f, bottle_revision=nil name = f.name.downcase version = f.stable.version - bottle_revision ||= f.bottle.revision.to_i + bottle_revision ||= f.bottle.revision.to_i if f.bottle "#{name}-#{version}#{bottle_native_suffix(bottle_revision)}" end |
