aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-30 15:55:03 -0500
committerJack Nagel2014-03-30 15:55:37 -0500
commitd063e4d4b783ac15b8b13fd356c33a76f2c79179 (patch)
tree4ec57c668ec95faabed099264b0deb14ecfaaeec /Library
parent5cf8728d7bcf98cc1ac58745f2cc752bde6b37bc (diff)
downloadhomebrew-d063e4d4b783ac15b8b13fd356c33a76f2c79179.tar.bz2
Aliases never point at symlinks, so just use resolved_path
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 81b546388..4dcd2a7c2 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -417,7 +417,7 @@ class Formula
# test if the name is a formula alias
possible_alias = Pathname.new("#{HOMEBREW_LIBRARY}/Aliases/#{name}")
if possible_alias.file?
- return possible_alias.realpath.basename('.rb').to_s
+ return possible_alias.resolved_path.basename(".rb").to_s
end
# test if the name is a cached downloaded formula