bump-cask-pr: fix for casks that have multiple languages
This commit is contained in:
parent
c3e82f6baf
commit
e7ce9a3982
@ -140,6 +140,7 @@ module Homebrew
|
||||
silent: true)
|
||||
|
||||
tmp_cask = Cask::CaskLoader.load(tmp_contents)
|
||||
tmp_config = cask.config
|
||||
tmp_url = tmp_cask.url.to_s
|
||||
|
||||
if new_hash.nil?
|
||||
@ -151,9 +152,9 @@ module Homebrew
|
||||
cask.languages.each do |language|
|
||||
next if language == cask.language
|
||||
|
||||
tmp_cask.config.languages = [language]
|
||||
|
||||
lang_config = tmp_config.merge(Cask::Config.new(explicit: { languages: [language] }))
|
||||
lang_cask = Cask::CaskLoader.load(tmp_contents)
|
||||
lang_cask.config = lang_config
|
||||
lang_url = lang_cask.url.to_s
|
||||
lang_old_hash = lang_cask.sha256
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user