aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-07-04 11:23:47 +0100
committerMike McQuaid2013-07-04 11:32:50 +0100
commita5c796b2cc4b6b0d061a2bab8481b4be3902fc31 (patch)
tree8f66f85f4194347b401aff055aeac2412e8107fb /Library
parent9dcbcc892a69a753dadaf1e86c8ba03bde8673a7 (diff)
downloadhomebrew-a5c796b2cc4b6b0d061a2bab8481b4be3902fc31.tar.bz2
bottles: only try f.bottle.revision if it exists.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/bottles.rb2
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