bottles: only try f.bottle.revision if it exists.
This commit is contained in:
parent
9d12b917ec
commit
6c242ad4bb
@ -7,7 +7,7 @@ require 'extend/ARGV'
|
|||||||
def bottle_filename f, bottle_revision=nil
|
def bottle_filename f, 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
|
bottle_revision ||= f.bottle.revision.to_i if f.bottle
|
||||||
"#{name}-#{version}#{bottle_native_suffix(bottle_revision)}"
|
"#{name}-#{version}#{bottle_native_suffix(bottle_revision)}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user