Bottles: fix bottle_filename revision

Fixes Homebrew/homebrew#24981.
This commit is contained in:
Misty De Meo 2013-12-05 23:06:50 -08:00
parent 5252c35f34
commit 2c175a9d7d

View File

@ -6,7 +6,7 @@ require 'bottle_version'
def bottle_filename f, options={:tag=>bottle_tag, :bottle_revision=>nil} def bottle_filename f, options={:tag=>bottle_tag, :bottle_revision=>nil}
name = f.name.downcase name = f.name.downcase
version = f.stable.version version = f.stable.version
bottle_revision ||= f.bottle.revision.to_i if f.bottle options[:revision] ||= f.bottle.revision.to_i if f.bottle
"#{name}-#{version}#{bottle_native_suffix(options)}" "#{name}-#{version}#{bottle_native_suffix(options)}"
end end