diff options
| author | Max Howell | 2011-06-16 15:08:27 +0100 |
|---|---|---|
| committer | Max Howell | 2011-06-17 09:30:25 +0100 |
| commit | 527c841f1cdcf1352187d63058acd7fdb304363f (patch) | |
| tree | 58dd1337c71e6fe217348b3baa01e15986939757 /Library/Homebrew/extend/pathname.rb | |
| parent | 153c1c759b1fac33a1040421906a6b62726e1a4f (diff) | |
| download | brew-527c841f1cdcf1352187d63058acd7fdb304363f.tar.bz2 | |
Fix make_relative_symlink when names differ
Before we would always make the symlink itself have a basename the same as what it pointed to.
I don’t think this breaks any of the other usages as they were working by coincidence.
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 54435aa37..d44f59968 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -230,7 +230,7 @@ class Pathname Dir.chdir self.dirname do # TODO use Ruby function so we get exceptions # NOTE Ruby functions may work, but I had a lot of problems - rv = system 'ln', '-sf', src.relative_path_from(self.dirname) + rv = system 'ln', '-sf', src.relative_path_from(self.dirname), self.basename unless rv and $? == 0 raise <<-EOS.undent Could not create symlink #{to_s}. |
