From bb6816dc4a2f6606cb024ec39eba333c670f484f Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 21 Feb 2012 12:45:45 +0000 Subject: [PATCH] Convert to Pathname if not Pathname as we need it to be --- Library/Homebrew/extend/pathname.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 0dbff65c69..ef14801c58 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -270,6 +270,8 @@ class Pathname # perhaps confusingly, this Pathname object becomes the symlink pointing to # the src paramter. def make_relative_symlink src + src = Pathname.new(src) unless src.kind_of? Pathname + self.dirname.mkpath Dir.chdir self.dirname do # TODO use Ruby function so we get exceptions