diff options
| author | Max Howell | 2009-09-05 20:45:21 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-05 20:45:21 +0100 |
| commit | 64e767155a8322d051ea7ff57a5bedf1f237ae2e (patch) | |
| tree | 820ab7ce6b80fe44a3bc927885820b6b7f92e95a | |
| parent | 7709c3699a5e01f01abee08c8fec59ce57eceeb7 (diff) | |
| download | brew-64e767155a8322d051ea7ff57a5bedf1f237ae2e.tar.bz2 | |
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.
| -rwxr-xr-x | bin/brew | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |
