diff options
| author | Max Howell | 2012-02-21 12:45:45 +0000 |
|---|---|---|
| committer | Max Howell | 2012-02-21 12:45:45 +0000 |
| commit | c1911f7ae25cc165164e729a51c3b19ef5064c6d (patch) | |
| tree | c360a683ce33599a10687837d2d2b7fb05830977 /Library | |
| parent | 8585c69af68f258e60ee13fe582cd74cf1d7c2ba (diff) | |
| download | homebrew-c1911f7ae25cc165164e729a51c3b19ef5064c6d.tar.bz2 | |
Convert to Pathname if not Pathname as we need it to be
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 2 |
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 |
