aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorXu Cheng2015-12-06 21:44:18 +0800
committerXu Cheng2015-12-09 16:56:59 +0800
commitb810c034b753223911a12add9ea53f9c3b7efb5a (patch)
tree54533172d34b0b8aaadc8e926a7a5370a475a5ac /Library
parent871ec755242f0ab174c06f582e192b2a26d085a0 (diff)
downloadbrew-b810c034b753223911a12add9ea53f9c3b7efb5a.tar.bz2
Formulary: use Tap#alias_dir
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formulary.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 5cc7a8869..0eefad1f5 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -150,7 +150,7 @@ class Formulary
path = @tap.formula_files.detect { |file| file.basename(".rb").to_s == name }
unless path
- if (possible_alias = @tap.path/"Aliases/#{name}").file?
+ if (possible_alias = @tap.alias_dir/name).file?
path = possible_alias.resolved_path
name = path.basename(".rb").to_s
else