aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMax Howell2012-03-18 00:39:57 +0000
committerMax Howell2012-03-18 01:14:00 +0000
commit21bddc7972c4c7936bc02ee45378600f180bdbaa (patch)
tree572d501b99fc45ea1267032296bf38a231331c76 /Library/Homebrew
parentd01e9a8fd725c08ff7efbda0ad2fb2e0e2315344 (diff)
downloadbrew-21bddc7972c4c7936bc02ee45378600f180bdbaa.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')
-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"