From 5c54f5747b21ea2f4b346ee6f39b552f3e3c6cbf Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 23 Oct 2009 16:03:38 +0100 Subject: Allow multiple formula to symlink the same directory During the link step, if the destination symlink already exists, unlink it, and create a directory instead, then relink the original contents. Then continue linking the formula in question. Fixes #62 --- Library/Homebrew/keg.rb | 43 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 9299d6299..b9ca83953 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -28,6 +28,15 @@ class Keg