aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMax Howell2012-03-18 00:39:57 +0000
committerMax Howell2012-03-18 01:14:00 +0000
commita190d47cd849e8075ec3d50fece1de53d7f62d79 (patch)
treec000a68a69fb065b1a3ace57d5c293e34d127a39 /Library/Homebrew/cmd
parent224389dc7325b859cd3696b61428ce3347c444ea (diff)
downloadhomebrew-a190d47cd849e8075ec3d50fece1de53d7f62d79.tar.bz2
Make the tapping already there step actually work
For when the symlink for a tap already exists and points to the thing we are about to symlink. This can happen, mostly because my code has sucked, but since the filesystem can be edited by the user at whim, it's possible then too.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/tap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb
index bef0dfb5b..b72837320 100644
--- a/Library/Homebrew/cmd/tap.rb
+++ b/Library/Homebrew/cmd/tap.rb
@@ -34,7 +34,7 @@ module Homebrew extend self
to = HOMEBREW_LIBRARY.join("Formula/#{formula.basename}")
# Unexpected, but possible, lets proceed as if nothing happened
- formula.delete if to.symlink? and to.realpath == from
+ to.delete if to.symlink? and to.realpath == from
# using the system ln is the only way to get relative symlinks
system "ln -s ../Taps/#{formula} 2>/dev/null"