diff options
| author | Jack Nagel | 2014-03-30 15:55:03 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-30 15:55:37 -0500 |
| commit | 7584b2ca2b0f8da097a8591ca66bc3b653f3b3cf (patch) | |
| tree | ff1419a0446d062f95240b34ee4e4706c7117ae7 /Library/Homebrew | |
| parent | ca786e7054b88af15fce2de033e22925b7144678 (diff) | |
| download | brew-7584b2ca2b0f8da097a8591ca66bc3b653f3b3cf.tar.bz2 | |
Aliases never point at symlinks, so just use resolved_path
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula.rb | 2 |
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 |
