Merge pull request #20542 from Homebrew/upgrade_ofail_opoo
cmd/upgrade: fix ofail/opoo call.
This commit is contained in:
commit
7bd0458c71
@ -196,10 +196,13 @@ module Homebrew
|
||||
end
|
||||
|
||||
if pinned.any?
|
||||
Kernel.public_send(
|
||||
formulae.any? ? :ofail : :opoo, # only fail when pinned formulae are named explicitly
|
||||
"Not upgrading #{pinned.count} pinned #{Utils.pluralize("package", pinned.count)}:",
|
||||
)
|
||||
message = "Not upgrading #{pinned.count} pinned #{Utils.pluralize("package", pinned.count)}:"
|
||||
# only fail when pinned formulae are named explicitly
|
||||
if formulae.any?
|
||||
ofail message
|
||||
else
|
||||
opoo message
|
||||
end
|
||||
puts pinned.map { |f| "#{f.full_specified_name} #{f.pkg_version}" } * ", "
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user