From a46206bdc9555bb842f3031783fdf0c569615e0c Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 11 Nov 2009 17:23:50 +0000 Subject: [PATCH] Ignore spill in all /*/Library/Caches --- Library/Homebrew/beer_events.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/beer_events.rb b/Library/Homebrew/beer_events.rb index 61c41cc3e8..18d0d0a6cf 100644 --- a/Library/Homebrew/beer_events.rb +++ b/Library/Homebrew/beer_events.rb @@ -172,8 +172,7 @@ begin spill.reject! { |path| path =~ /^#{HOMEBREW_PREFIX}/ } # irrelevent files that change a lot spill.reject! { |path| path == "/Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist-lock" } - spill.reject! { |path| path == "/System/Library/Caches/com.apple.Components2.SystemCache.Components" } - spill.reject! { |path| path == "/System/Library/Caches/com.apple.Components2.SystemCache.QuickTimeComponents" } + spill.reject! { |path| path =~ %r{^(/System)?/Library/Caches/} } unless spill.empty? opoo "Detected installation of files outside the Homebrew prefix:" puts *spill