From 9f06b3df234fedb18e7b5512ddd290a416fe4bd2 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Mon, 27 Aug 2018 23:24:37 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20use=20`CLI::Cleanup`=20in=20`Au?= =?UTF-8?q?ditor`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Homebrew/cask/lib/hbc/auditor.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/lib/hbc/auditor.rb b/Library/Homebrew/cask/lib/hbc/auditor.rb index 284a5cce0b..b5dd2dd82e 100644 --- a/Library/Homebrew/cask/lib/hbc/auditor.rb +++ b/Library/Homebrew/cask/lib/hbc/auditor.rb @@ -47,7 +47,8 @@ module Hbc MacOS.instance_variable_set(:@languages, languages) audit_cask_instance(CaskLoader.load(cask.sourcefile_path)) ensure - CLI::Cleanup.run(cask.token) if audit_download? + # TODO: Check if this is still needed once cache deduplication is active. + Homebrew::Cleanup.new(days: 0).cleanup_cask(cask) if audit_download? end def audit_cask_instance(cask)