mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
fix: fail if superfluous packages are excluded
This commit is contained in:
parent
dbb10da4b0
commit
e307c736a5
@ -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,10 @@ module PyPI
|
||||
EOS
|
||||
end
|
||||
|
||||
unless exclude_packages.empty?
|
||||
odie "Excluded superfluous packages: #{", ".join(exclude_packages)}"
|
||||
end
|
||||
|
||||
if print_only
|
||||
puts new_resource_blocks.chomp
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user