From a1921b8141ec6b284f56c6fef23e135b504e0980 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Tue, 29 Mar 2022 17:33:55 -0700 Subject: [PATCH] dev-cmd/unbottled: ignore versioned macos when checking linux --- Library/Homebrew/dev-cmd/unbottled.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/unbottled.rb b/Library/Homebrew/dev-cmd/unbottled.rb index 82baf75f0e3b2..f4e5225dce8c7 100644 --- a/Library/Homebrew/dev-cmd/unbottled.rb +++ b/Library/Homebrew/dev-cmd/unbottled.rb @@ -169,7 +169,7 @@ def output_unbottled(formulae, deps_hash, noun, hash, any_named_args) requirements = f.recursive_requirements if @bottle_tag.linux? - if requirements.any?(MacOSRequirement) + if requirements.any? { |r| r.is_a?(MacOSRequirement) && !r.version } puts "#{Tty.bold}#{Tty.red}#{name}#{Tty.reset}: requires macOS" if any_named_args next end