Merge pull request #9283 from Rylan12/fix-update-python-resources

fix update-python-resources for formulae not in a tap
This commit is contained in:
Rylan Polster 2020-11-24 17:29:03 -05:00 committed by GitHub
commit 6cb7d5841b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ module PyPI
def update_python_resources!(formula, version: nil, package_name: nil, extra_packages: nil, exclude_packages: nil,
print_only: false, silent: false, ignore_non_pypi_packages: false)
auto_update_list = formula.tap.pypi_formula_mappings
auto_update_list = formula.tap&.pypi_formula_mappings
if auto_update_list.present? && auto_update_list.key?(formula.full_name) &&
package_name.blank? && extra_packages.blank? && exclude_packages.blank?