diff options
| author | Mike McQuaid | 2018-01-18 09:47:33 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2018-01-18 09:47:33 +0000 |
| commit | 77f1768108272f2168e22a735bead49fe7045331 (patch) | |
| tree | 429329004c1f002481ebdd1e28f5027204aa7982 /Library/Homebrew/formula_support.rb | |
| parent | 892e1b5b4fb2ec1b71b9486d65a8932f713af8a0 (diff) | |
| download | brew-77f1768108272f2168e22a735bead49fe7045331.tar.bz2 | |
Disable and add more deprecations.
These have all been deprecated/compat for a while.
Diffstat (limited to 'Library/Homebrew/formula_support.rb')
| -rw-r--r-- | Library/Homebrew/formula_support.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index 53fd61db8..011d8a4b7 100644 --- a/Library/Homebrew/formula_support.rb +++ b/Library/Homebrew/formula_support.rb @@ -32,15 +32,25 @@ class KegOnlyReason def to_s return @explanation unless @explanation.empty? + + case @reason + when :provided_by_osx + odeprecated "keg_only :provided_by_osx", "keg_only :provided_by_macos" + @reason = :provided_by_macos + when :shadowed_by_osx + odeprecated "keg_only :shadowed_by_osx", "keg_only :shadowed_by_macos" + @reason = :shadowed_by_macos + end + case @reason when :versioned_formula then <<~EOS this is an alternate version of another formula EOS - when :provided_by_macos, :provided_by_osx then <<~EOS + when :provided_by_macos then <<~EOS macOS already provides this software and installing another version in parallel can cause all kinds of trouble EOS - when :shadowed_by_macos, :shadowed_by_osx then <<~EOS + when :shadowed_by_macos then <<~EOS macOS provides similar software and installing this software in parallel can cause all kinds of trouble EOS |
