From 64e767155a8322d051ea7ff57a5bedf1f237ae2e Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 5 Sep 2009 20:45:21 +0100 Subject: FIX installed but not installed state. Pressing CTRL-C during installs would remove the prefix but not the keg directory. brew list would then report this keg as installed, even though it was empty.--- bin/brew | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/brew b/bin/brew index a0feec3f7..cc89e9263 100755 --- a/bin/brew +++ b/bin/brew @@ -135,7 +135,10 @@ begin clean f raise "Nothing was installed to #{f.prefix}" unless f.installed? rescue Exception - f.prefix.rmtree if f.prefix.directory? + if f.prefix.directory? + f.prefix.rmtree + f.prefix.parent.rmdir_if_possible + end raise end -- cgit v1.2.3