From 124ddce2627d7205191e095d28d695e69da6c378 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 14 Aug 2013 21:30:23 -0700 Subject: audit: show real name for aliases --- Library/Homebrew/cmd/audit.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index c828b8197..492291ab9 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -127,7 +127,8 @@ class FormulaAuditor # Don't depend_on aliases; use full name @@aliases ||= Formula.aliases f.deps.select { |d| @@aliases.include? d.name }.each do |d| - problem "Dependency #{d} is an alias; use the canonical name." + real_name = d.to_formula.name + problem "Dependency '#{d}' is an alias; use the canonical name '#{real_name}'." end # Check for things we don't like to depend on. -- cgit v1.2.3