Merge pull request #7337 from difelice/patch-1

Fix KegOnlyReason property access.
This commit is contained in:
Issy Long 2020-04-12 21:39:38 +01:00 committed by GitHub
commit 9e4dfaf726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ module Homebrew
if keg_only
if Homebrew.default_prefix?
f = keg.to_formula
if f.keg_only_reason.reason.by_macos?
if f.keg_only_reason.by_macos?
caveats = Caveats.new(f)
opoo <<~EOS
Refusing to link macOS provided/shadowed software: #{keg.name}