diff options
| author | Mike McQuaid | 2017-06-07 15:28:22 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2017-06-07 15:58:13 +0100 | 
| commit | 838bb38b3eeb73a6b37120cdc2c9d4fff9e52ee4 (patch) | |
| tree | 443bfac7a00a5ca4da3cd4e92f16cca34596dbca | |
| parent | cfc40196f22fd07cf62a6f51ee22915485bb4c09 (diff) | |
| download | brew-838bb38b3eeb73a6b37120cdc2c9d4fff9e52ee4.tar.bz2 | |
reinstall: remove partially installed keg.
Previously if a `brew reinstall` was Ctrl-Cd after some files had been
installed it wouldn't try to remove the partially installed keg and the
renaming of the backed-up keg would fail. Alternatively, remove the
partially installed keg as if it has been Ctrl-Cd or otherwise failed
then it's not desirable to keep it.
| -rw-r--r-- | Library/Homebrew/cmd/reinstall.rb | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index 7ba57fd13..f177c6b5d 100644 --- a/Library/Homebrew/cmd/reinstall.rb +++ b/Library/Homebrew/cmd/reinstall.rb @@ -66,6 +66,7 @@ module Homebrew      return unless path.directory? +    keg.rmtree if keg.exist?      path.rename keg      keg.link unless formula.keg_only?    end | 
