aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-31 22:39:41 -0500
committerJack Nagel2014-03-31 22:39:41 -0500
commit31bb0f62275ff0aebec02a93b9da79e769043dee (patch)
tree056c86e583f2889213fd3c2bf41cee9cdf780373 /Library
parent562c199994e6b8e1f5271d09bf0167e8b730f422 (diff)
downloadhomebrew-31bb0f62275ff0aebec02a93b9da79e769043dee.tar.bz2
Use resolved_path instead of dirname and readlink directly
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index 1d0d14e7e..3ec28136c 100644
--- a/Library/Homebrew/keg.rb
+++ b/Library/Homebrew/keg.rb
@@ -218,7 +218,7 @@ class Keg < Pathname
# it, and the exception that is generated will message to the user about
# the situation
if dst.symlink? and dst.directory?
- src = (dst.parent+dst.readlink).cleanpath
+ src = dst.resolved_path
keg = Keg.for(src)
dst.unlink unless mode.dry_run
keg.link_dir(src, mode) { :mkpath }