diff options
| author | Max Howell | 2012-03-07 17:13:37 +0000 |
|---|---|---|
| committer | Max Howell | 2012-03-07 17:14:06 +0000 |
| commit | 4e3c99d96ffea3eb8d791b583de7a820a4f26e1e (patch) | |
| tree | cda6383dc02316fb34b5eb5a9c07488cbd16ff0d /Library | |
| parent | 5b0d97efc741019378ee5b40c09796a3c31d2fcb (diff) | |
| download | brew-4e3c99d96ffea3eb8d791b583de7a820a4f26e1e.tar.bz2 | |
Don't attempt to cleanup source checkouts
Fixes Homebrew/homebrew#10751.
Diffstat (limited to 'Library')
| -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 |
