Skip to content
Snippets Groups Projects
Commit 6c242ad4 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

bottles: only try f.bottle.revision if it exists.

parent 9d12b917
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment