mxcl/homebrew — Issue #8555: Brew does not detect interrupted installs
Author: knl
Created: 2011-11-12 08:24:16+00:00
State: open

Hi, a couple of days ago, I did `brew up && brew upgrade`. This lead to detecting plt-racket as outdated and brew started building new plt-racket 5.2. However, my computer froze during the build, and I had to reboot it.

The issue is that brew reports plt-racket as updated, because `/usr/local/Cellar/plt-racket/5.2` *exists*. However, this directory is not *complete*, and call to racket results in this:

$ racket
Welcome to Racket v5.1.3.
>

`brew info plt-racket` shows the following:

plt-racket 5.2
http://racket-lang.org/
/usr/local/Cellar/plt-racket/5.1.3 (17822 files, 267M)
/usr/local/Cellar/plt-racket/5.2 (12471 files, 127M) *
http://github.com/mxcl/homebrew/commits/master/Library/Formula/plt-racket.rb