Actually cache Tap#pypi_formula_mappings.

This commit is contained in:
Markus Reiter 2024-02-23 15:08:11 +01:00
parent 34af31a05d
commit 1a13097a86
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -861,8 +861,9 @@ class Tap
end
# Hash with pypi formula mappings
sig { returns(Hash) }
def pypi_formula_mappings
@pypi_formula_mappings = read_formula_list path/HOMEBREW_TAP_PYPI_FORMULA_MAPPINGS_FILE
@pypi_formula_mappings ||= read_formula_list(path/HOMEBREW_TAP_PYPI_FORMULA_MAPPINGS_FILE)
end
# Array with synced versions formulae