Don't attempt to cleanup source checkouts
Fixes Homebrew/homebrew#10751.
This commit is contained in:
parent
5b0d97efc7
commit
4e3c99d96f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user