aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/audit.rb
diff options
context:
space:
mode:
authorXu Cheng2015-12-09 12:09:55 +0800
committerXu Cheng2015-12-09 16:56:59 +0800
commitfe032e3e9682db3d428ae3b6a2d1d79d86a67f41 (patch)
tree70c692b533a3ff02e32ba96769f2fd44820e3584 /Library/Homebrew/cmd/audit.rb
parent571011ad59f37e2094d00a8ce2ec1a8edaba74e6 (diff)
downloadbrew-fe032e3e9682db3d428ae3b6a2d1d79d86a67f41.tar.bz2
avoid using FORMULA_RENAMES directly
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
-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 ac85319bb..88e67c9b3 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -245,8 +245,8 @@ class FormulaAuditor
return
end
- if FORMULA_RENAMES.key? name
- problem "'#{name}' is reserved as the old name of #{FORMULA_RENAMES[name]}"
+ if oldname = CoreFormulaRepository.instance.formula_renames[name]
+ problem "'#{name}' is reserved as the old name of #{oldname}"
return
end