From 3570214d20727ba26543fdd3af386f2be25c5491 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 23 Oct 2009 16:03:38 +0100 Subject: [PATCH] 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 Homebrew/homebrew#62 --- Library/Homebrew/keg.rb | 43 +++++++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 9299d62996..b9ca83953a 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -28,6 +28,15 @@ class Keg