aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/auditor.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/auditor.rb b/Library/Homebrew/cask/lib/hbc/auditor.rb
index d6846080b..b112fd0ed 100644
--- a/Library/Homebrew/cask/lib/hbc/auditor.rb
+++ b/Library/Homebrew/cask/lib/hbc/auditor.rb
@@ -1,15 +1,16 @@
module Hbc
class Auditor
def self.audit(cask, audit_download: false, check_token_conflicts: false)
- if languages_blocks = cask.instance_variable_get(:@dsl).instance_variable_get(:@language_blocks)
+ if !ARGV.value("language") &&
+ languages_blocks = cask.instance_variable_get(:@dsl).instance_variable_get(:@language_blocks)
begin
saved_languages = MacOS.instance_variable_get(:@languages)
languages_blocks.keys.map { |languages|
ohai "Auditing language: #{languages.map { |lang| "'#{lang}'" }.join(", ")}"
MacOS.instance_variable_set(:@languages, languages)
- CLI::Cleanup.run(cask.token) if audit_download
audit_cask_instance(Hbc.load(cask.sourcefile_path), audit_download, check_token_conflicts)
+ CLI::Cleanup.run(cask.token) if audit_download
}.all?
ensure
MacOS.instance_variable_set(:@languages, saved_languages)