diff --git a/Library/Homebrew/cleanup.rb b/Library/Homebrew/cleanup.rb index 88d276bf4d..4aa7ff114c 100644 --- a/Library/Homebrew/cleanup.rb +++ b/Library/Homebrew/cleanup.rb @@ -88,7 +88,7 @@ module Homebrew f.version > version end - if file_is_stale || ARGV.switch?("s") && !f.installed? || bottle_file_outdated?(f, file) + if file_is_stale || ARGV.switch?("s") && !f.installed? || Utils::Bottles::file_outdated?(f, file) cleanup_path(file) { file.unlink } end end