diff options
| author | Simon Sigurdhsson | 2013-03-31 12:35:11 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2013-03-31 19:27:17 +0100 |
| commit | a79f1a80b8858a99edf5d80067654d0e5d7d587e (patch) | |
| tree | 62d4ed04306c9f3dae2fa1fbdeafdeee9a49cbc3 /Library/Formula/libreadline-java.rb | |
| parent | 49bc73a4ef3f9b63030d81869f02cb770ed5bd4f (diff) | |
| download | homebrew-a79f1a80b8858a99edf5d80067654d0e5d7d587e.tar.bz2 | |
brew-pin: Fix bug in `FormulaPin#pinned?`
Since `pinned?` was using `File#exists?`, broken symlinks left by force-upgraded
formulae made `pinned?` return false while `pin` returned with an error because
it could not overwrite the broken link. This is fixed by using `File#symlink?`
instead, which returns true for broken symlinks and false only when they do not
exist.
Closes #18858.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/libreadline-java.rb')
0 files changed, 0 insertions, 0 deletions
