From 7e946c19a2c2e1a7391e5e255506c6f955ec8c86 Mon Sep 17 00:00:00 2001 From: Adrian Ho Date: Fri, 21 Feb 2025 10:32:39 +0800 Subject: [PATCH] update-python-resources: work on bare formula Also favor Homebrew API over manual string comparison. Resolves https://github.com/orgs/Homebrew/discussions/5967. --- Library/Homebrew/dev-cmd/update-python-resources.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/update-python-resources.rb b/Library/Homebrew/dev-cmd/update-python-resources.rb index c80cf01c20..c40a3e6641 100644 --- a/Library/Homebrew/dev-cmd/update-python-resources.rb +++ b/Library/Homebrew/dev-cmd/update-python-resources.rb @@ -39,7 +39,7 @@ module Homebrew sig { override.void } def run args.named.to_formulae.each do |formula| - ignore_errors = if T.must(formula.tap).name == "homebrew/core" + ignore_errors = if formula.tap&.official? false else args.ignore_errors?