aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libreadline-java.rb
diff options
context:
space:
mode:
authorSimon Sigurdhsson2013-03-31 12:35:11 +0200
committerMike McQuaid2013-03-31 19:27:17 +0100
commita79f1a80b8858a99edf5d80067654d0e5d7d587e (patch)
tree62d4ed04306c9f3dae2fa1fbdeafdeee9a49cbc3 /Library/Formula/libreadline-java.rb
parent49bc73a4ef3f9b63030d81869f02cb770ed5bd4f (diff)
downloadhomebrew-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