aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
-rw-r--r--Library/Homebrew/cmd/update.rb2
-rw-r--r--Library/Homebrew/formulary.rb2
3 files changed, 4 insertions, 4 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
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb
index f4cd9d712..39a0371fb 100644
--- a/Library/Homebrew/cmd/update.rb
+++ b/Library/Homebrew/cmd/update.rb
@@ -422,7 +422,7 @@ class Report
next unless newname = Tap.fetch($1, $2).formula_renames[oldname]
else
oldname = path.basename(".rb").to_s
- next unless newname = FORMULA_RENAMES[oldname]
+ next unless newname = CoreFormulaRepository.instance.formula_renames[oldname]
end
if fetch(:A, []).include?(newpath = path.dirname.join("#{newname}.rb"))
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 4678f7a0e..984cac9ce 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -289,7 +289,7 @@ class Formulary
return FormulaLoader.new(name, path)
end
- if newref = FORMULA_RENAMES[ref]
+ if newref = CoreFormulaRepository.instance.formula_renames[ref]
formula_with_that_oldname = core_path(newref)
if formula_with_that_oldname.file?
return FormulaLoader.new(newref, formula_with_that_oldname)