aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index f84cd1295..d73d2f714 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -122,8 +122,8 @@ class FormulaAuditor
def audit_deps
# Don't depend_on aliases; use full name
- aliases = Formula.aliases
- f.deps.select { |d| aliases.include? d.name }.each do |d|
+ @@aliases ||= Formula.aliases
+ f.deps.select { |d| @@aliases.include? d.name }.each do |d|
problem "Dependency #{d} is an alias; use the canonical name."
end