aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-14 21:30:23 -0700
committerAdam Vandenberg2013-08-14 21:35:46 -0700
commit08c70fd3414fc5f60dd4f0c2880378c060bfe1bc (patch)
treebb5a671c481c2a7385246859b5f6905c9317ed01 /Library/Homebrew/cmd
parent893326763d078066430d863ac409ceb79a581298 (diff)
downloadhomebrew-08c70fd3414fc5f60dd4f0c2880378c060bfe1bc.tar.bz2
audit: show real name for aliases
Diffstat (limited to 'Library/Homebrew/cmd')
-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.