pull --bottle: Fix bug in any_bottle_tag
Utils::Bottles.tag is a symbol, whereas bottle_tags is an array of strings.
This commit is contained in:
parent
5556aba0ce
commit
f70a2c67da
@ -581,7 +581,7 @@ module Homebrew
|
||||
end
|
||||
|
||||
def any_bottle_tag
|
||||
tag = Utils::Bottles.tag
|
||||
tag = Utils::Bottles.tag.to_s
|
||||
# Prefer native bottles as a convenience for download caching
|
||||
bottle_tags.include?(tag) ? tag : bottle_tags.first
|
||||
end
|
||||
@ -640,7 +640,7 @@ module Homebrew
|
||||
opoo "Cannot publish bottle: Failed reading info for formula #{f.full_name}"
|
||||
next
|
||||
end
|
||||
bottle_info = jinfo.bottle_info(jinfo.bottle_tags.first)
|
||||
bottle_info = jinfo.bottle_info_any
|
||||
unless bottle_info
|
||||
opoo "No bottle defined in formula #{f.full_name}"
|
||||
next
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user