Skip to content

Commit

Permalink
fix: fail if superfluous packages are excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Feb 6, 2024
1 parent dbb10da commit e307c73
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 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,10 @@ def self.update_python_resources!(formula, version: nil, package_name: nil, extr
EOS
end

unless exclude_packages.empty?
odie "Excluded superfluous packages: #{", ".join(exclude_packages)}"
end

if print_only
puts new_resource_blocks.chomp
return
Expand Down

0 comments on commit e307c73

Please sign in to comment.