cmd/list: follow aliases

Closes #1514
This commit is contained in:
Uladzislau Shablinski 2016-11-16 02:08:38 +03:00
parent 82aace9844
commit 715caea79b

View File

@ -107,7 +107,7 @@ module Homebrew
names = if ARGV.named.empty?
Formula.racks
else
racks = ARGV.named.map { |n| HOMEBREW_CELLAR+n }
racks = ARGV.named.map { |n| Formulary.to_rack(n) }
racks.select do |rack|
Homebrew.failed = true unless rack.exist?
rack.exist?