aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/cleanup.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb
index 0f2a1875d..ba9745f1a 100644
--- a/Library/Homebrew/cmd/cleanup.rb
+++ b/Library/Homebrew/cmd/cleanup.rb
@@ -50,6 +50,7 @@ module Homebrew extend self
def clean_cache
HOMEBREW_CACHE.children.each do |pn|
+ next unless pn.file?
pn.stem =~ /^(.+)-(.+)$/ # greedy so works even if formula-name has hyphens in it
if $1 and $2
f = Formula.factory($1) rescue nil