aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2012-02-21 12:45:45 +0000
committerMax Howell2012-02-21 12:45:45 +0000
commitbb6816dc4a2f6606cb024ec39eba333c670f484f (patch)
treef8056b142cb5ce029d30241cca687b51927538c4
parent3a58b8141b51a5e5df29a0660c85a8beb75f4171 (diff)
downloadbrew-bb6816dc4a2f6606cb024ec39eba333c670f484f.tar.bz2
Convert to Pathname if not Pathname as we need it to be
-rw-r--r--Library/Homebrew/extend/pathname.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 0dbff65c6..ef14801c5 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