Don't attempt to cleanup source checkouts

Fixes Homebrew/homebrew#10751.
This commit is contained in:
Max Howell 2012-03-07 17:13:37 +00:00
parent 5b0d97efc7
commit 4e3c99d96f

View File

@ -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