From 6c242ad4bbb97275984479f8599ebd224e942768 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 4 Jul 2013 11:23:47 +0100 Subject: bottles: only try f.bottle.revision if it exists. --- Library/Homebrew/bottles.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3