aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-03-31 22:39:41 -0500
committerJack Nagel2014-03-31 22:39:41 -0500
commitd88c79f3cf7c23dd4cbf9e7731f403f536f0251e (patch)
tree1925478d9d895c85163fbf4520e1777fb2e489fd /Library/Homebrew
parentb29be4c9a594f03757a3d64650c0fa186c73cb1d (diff)
downloadbrew-d88c79f3cf7c23dd4cbf9e7731f403f536f0251e.tar.bz2
Use resolved_path instead of dirname and readlink directly
Diffstat (limited to 'Library/Homebrew')
-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 }