From 3435202f9115c9debef0c90a2326238d03d65486 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 13 Jan 2019 20:26:41 +0100 Subject: [PATCH 1/2] Fix missing `require`. --- Library/Homebrew/cask/auditor.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/cask/auditor.rb b/Library/Homebrew/cask/auditor.rb index 4fb30e7acd..a4ccf4c908 100644 --- a/Library/Homebrew/cask/auditor.rb +++ b/Library/Homebrew/cask/auditor.rb @@ -1,3 +1,4 @@ +require "cleanup" require "cask/download" module Cask From e472c35880fc6708be987ecbe768019003b105b6 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 13 Jan 2019 20:29:52 +0100 Subject: [PATCH 2/2] Remove unneeded cleanup. --- Library/Homebrew/cask/auditor.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Library/Homebrew/cask/auditor.rb b/Library/Homebrew/cask/auditor.rb index a4ccf4c908..8a5485739f 100644 --- a/Library/Homebrew/cask/auditor.rb +++ b/Library/Homebrew/cask/auditor.rb @@ -1,4 +1,3 @@ -require "cleanup" require "cask/download" module Cask @@ -52,9 +51,6 @@ module Cask ohai "Auditing language: #{languages.map { |lang| "'#{lang}'" }.to_sentence}" MacOS.instance_variable_set(:@languages, languages) audit_cask_instance(CaskLoader.load(cask.sourcefile_path)) - ensure - # 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)