phinze/homebrew-cask — pull request #1279 by phinze (2013-10-24 19:57:32+00:00)
Title: fixes to pkg uninstaller to prevent madness

- do not remove *all* symlinks from referenced dirs, only broken ones
- restore dir permission after use so we don't leave behind 777 dirs
- add some better testing around `Cask::Pkg`
- clean up `FakeSystemCommand` interface in tests

refs #1274