Merge pull request #16603 from SMillerDev/fix/pypy_bump/fail_superfluous_excludes

fix: fail if superfluous packages are excluded
This commit is contained in:
Sean Molenaar 2024-02-12 16:37:05 +01:00 committed by GitHub
commit 71123a07fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -307,6 +307,7 @@ module PyPI
found_packages.sort.each do |package|
if exclude_packages.include? package
ohai "Excluding \"#{package}\"" if show_info
exclude_packages.delete package
next
end
@ -332,6 +333,8 @@ module PyPI
EOS
end
odie "Excluded superfluous packages: #{exclude_packages.join(", ")}" if exclude_packages.any?
if print_only
puts new_resource_blocks.chomp
return