audit: replace depends_on with uses_from_macos

This commit is contained in:
Dawid Dziurla 2019-10-10 17:29:57 +02:00
parent e3cf9592d1
commit 86feb5a9de
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B
2 changed files with 3 additions and 3 deletions

View File

@ -394,8 +394,8 @@ module Homebrew
dep_f.keg_only_reason.valid? &&
!%w[apr apr-util openblas openssl openssl@1.1].include?(dep.name)
new_formula_problem(
"Dependency '#{dep.name}' may be unnecessary as it is provided " \
"by macOS; try to build this formula without it.",
"Dependency '#{dep.name}' is provided by macOS; " \
"please replace 'depends_on' with 'uses_from_macos'.",
)
end

View File

@ -316,7 +316,7 @@ module Homebrew
fa.audit_deps
end
its(:new_formula_problems) { are_expected.to match([/unnecessary/]) }
its(:new_formula_problems) { are_expected.to match([/is provided by macOS/]) }
end
end
end