Merge pull request #16603 from SMillerDev/fix/pypy_bump/fail_superfluous_excludes
fix: fail if superfluous packages are excluded
This commit is contained in:
commit
71123a07fd
@ -307,6 +307,7 @@ module PyPI
|
|||||||
found_packages.sort.each do |package|
|
found_packages.sort.each do |package|
|
||||||
if exclude_packages.include? package
|
if exclude_packages.include? package
|
||||||
ohai "Excluding \"#{package}\"" if show_info
|
ohai "Excluding \"#{package}\"" if show_info
|
||||||
|
exclude_packages.delete package
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -332,6 +333,8 @@ module PyPI
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
odie "Excluded superfluous packages: #{exclude_packages.join(", ")}" if exclude_packages.any?
|
||||||
|
|
||||||
if print_only
|
if print_only
|
||||||
puts new_resource_blocks.chomp
|
puts new_resource_blocks.chomp
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user