Skip to content

Commit

Permalink
Merge pull request #16603 from SMillerDev/fix/pypy_bump/fail_superflu…
Browse files Browse the repository at this point in the history
…ous_excludes

fix: fail if superfluous packages are excluded
  • Loading branch information
SMillerDev authored Feb 12, 2024
2 parents 8e3bcd3 + f2eb156 commit 71123a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Library/Homebrew/utils/pypi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def self.update_python_resources!(formula, version: nil, package_name: nil, extr
found_packages.sort.each do |package|
if exclude_packages.include? package
ohai "Excluding \"#{package}\"" if show_info
exclude_packages.delete package
next
end

Expand All @@ -332,6 +333,8 @@ def self.update_python_resources!(formula, version: nil, package_name: nil, extr
EOS
end

odie "Excluded superfluous packages: #{exclude_packages.join(", ")}" if exclude_packages.any?

if print_only
puts new_resource_blocks.chomp
return
Expand Down

0 comments on commit 71123a0

Please sign in to comment.