compat/requirements: add odeprecated.
These can be enabled now Homebrew/homebrew-core has been fixed (in https://github.com/Homebrew/homebrew-core/pull/32968).
This commit is contained in:
parent
fdd8e9b7cf
commit
5bea36799b
@ -4,8 +4,7 @@ class X11Requirement < Requirement
|
||||
module Compat
|
||||
def initialize(tags = [])
|
||||
if tags.first.to_s.match?(/(\d\.)+\d/)
|
||||
# TODO: deprecate when Homebrew/homebrew-core is fixed.
|
||||
# odeprecated('depends_on :x11 => "X.Y.Z"')
|
||||
odeprecated('depends_on :x11 => "X.Y.Z"')
|
||||
tags.shift
|
||||
end
|
||||
|
||||
|
||||
@ -8,8 +8,7 @@ class XcodeRequirement < Requirement
|
||||
else
|
||||
tags.find do |tag|
|
||||
next unless tag.to_s.match?(/(\d\.)+\d/)
|
||||
# TODO: deprecate when Homebrew/homebrew-core is fixed.
|
||||
# odeprecated('depends_on :xcode => [..., "X.Y.Z"]')
|
||||
odeprecated('depends_on :xcode => [..., "X.Y.Z"]')
|
||||
tags.delete(tag)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user