aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2013-07-04 11:23:47 +0100
committerMike McQuaid2013-07-04 11:32:50 +0100
commit6c242ad4bbb97275984479f8599ebd224e942768 (patch)
treede0b1da072b592df7ac8b64f6c30d7939061447e
parent9d12b917ec6e864627ad24f7589e31f78fb1c94d (diff)
downloadbrew-6c242ad4bbb97275984479f8599ebd224e942768.tar.bz2
bottles: only try f.bottle.revision if it exists.
-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