diff options
| author | Jack Nagel | 2013-05-07 18:40:14 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-07 18:40:14 -0500 |
| commit | 0778025732103ecb5b9d089dc6cfb485d462234d (patch) | |
| tree | 27a8f5417738072fc14e239d628c9ed8446fefbe /Library | |
| parent | b304a3caf1c64cc466d5b495ef0f49d5f6191c5c (diff) | |
| download | homebrew-0778025732103ecb5b9d089dc6cfb485d462234d.tar.bz2 | |
audit: only generate aliases list once
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 4 |
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 |
