Skip to content
Snippets Groups Projects
Unverified Commit 7f32e23a authored by Mike McQuaid's avatar Mike McQuaid
Browse files

cmd/link: don't link shadowed macOS software.

parent 373650d0
No related branches found
No related tags found
No related merge requests found
......@@ -68,10 +68,10 @@ module Homebrew
if keg_only
if Homebrew.default_prefix?
f = keg.to_formula
if f.keg_only_reason.reason == :provided_by_macos
if f.keg_only_reason.reason.by_macos?
caveats = Caveats.new(f)
opoo <<~EOS
Refusing to link macOS-provided software: #{keg.name}
Refusing to link macOS provided/shadowed software: #{keg.name}
#{caveats.keg_only_text(skip_reason: true).strip}
EOS
next
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment