diff options
| author | Max Howell | 2012-03-07 17:13:37 +0000 |
|---|---|---|
| committer | Max Howell | 2012-03-07 17:14:06 +0000 |
| commit | bbc5fed4bb87a27d48fc2a5d8b44c4f0fa9d5c1e (patch) | |
| tree | e04ea70582debea64db45545f78f78f4fa420399 | |
| parent | 97827fe2095a649dbddd4205fdcb3b82a0dca282 (diff) | |
| download | homebrew-bbc5fed4bb87a27d48fc2a5d8b44c4f0fa9d5c1e.tar.bz2 | |
Don't attempt to cleanup source checkouts
Fixes #10751.
| -rw-r--r-- | Library/Homebrew/cmd/cleanup.rb | 1 |
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 |
