aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2016-09-28 02:22:25 +0200
committerMarkus Reiter2016-10-03 02:34:53 +0200
commitef26bf188254671127f9c6b11e1c76585f136629 (patch)
tree1521932c5e528bd5eba87e3b76115f08e9f1467d /Library
parentb104e6ff37010232eacc86f442ef4d2cba155aac (diff)
downloadbrew-ef26bf188254671127f9c6b11e1c76585f136629.tar.bz2
Refactor audit for changed DSL.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/auditor.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/auditor.rb b/Library/Homebrew/cask/lib/hbc/auditor.rb
index 7a6bb608f..ee1b50938 100644
--- a/Library/Homebrew/cask/lib/hbc/auditor.rb
+++ b/Library/Homebrew/cask/lib/hbc/auditor.rb
@@ -4,10 +4,9 @@ module Hbc
saved_languages = MacOS.instance_variable_get(:@languages)
if languages_blocks = cask.instance_variable_get(:@dsl).instance_variable_get(:@language_blocks)
- languages_blocks.keys.map(&:first).each do |language|
- ohai "Auditing language #{language.to_s}"
- language = "en-US" if language == :default
- MacOS.instance_variable_set(:@languages, [language])
+ languages_blocks.keys.each do |languages|
+ ohai "Auditing language: #{languages.map { |lang| "'#{lang}'" }.join(", ")}"
+ MacOS.instance_variable_set(:@languages, languages)
audit_cask_instance(Hbc.load(cask.sourcefile_path), audit_download, check_token_conflicts)
CLI::Cleanup.run(cask.token) if audit_download
end