diff options
| author | Max Howell | 2009-09-05 20:45:21 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-05 20:45:21 +0100 |
| commit | ca9aa61815a5838fbc99bf722eb2b00ebd56d4f1 (patch) | |
| tree | 5190a1a0a4c3d4827c9e7f024323ad07988fb2cd | |
| parent | e23a612c4d3d4771e43873fef4bb4281ea6cc7da (diff) | |
| download | homebrew-ca9aa61815a5838fbc99bf722eb2b00ebd56d4f1.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 |
