aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-14 21:30:23 -0700
committerAdam Vandenberg2013-08-14 21:35:46 -0700
commit124ddce2627d7205191e095d28d695e69da6c378 (patch)
tree0c01d409782293efd7bdd3b8a809b44920d41021
parentccbac62677c07ba3d9d26171cb9fed2e4446e417 (diff)
downloadbrew-124ddce2627d7205191e095d28d695e69da6c378.tar.bz2
audit: show real name for aliases
-rw-r--r--Library/Homebrew/cmd/audit.rb3
1 files changed, 2 insertions, 1 deletions
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.