aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-05-07 18:40:14 -0500
committerJack Nagel2013-05-07 18:40:14 -0500
commit0778025732103ecb5b9d089dc6cfb485d462234d (patch)
tree27a8f5417738072fc14e239d628c9ed8446fefbe /Library
parentb304a3caf1c64cc466d5b495ef0f49d5f6191c5c (diff)
downloadhomebrew-0778025732103ecb5b9d089dc6cfb485d462234d.tar.bz2
audit: only generate aliases list once
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