remove Requirement#pour_bottle?
It's never used since a0a93f1b3b7b2be9b8a319be91086ffe220f8e32. Closes Homebrew/homebrew#43462. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
79ea14b738
commit
01d7f4e766
@ -55,12 +55,6 @@ class Requirement
|
|||||||
!!result
|
!!result
|
||||||
end
|
end
|
||||||
|
|
||||||
# Can overridden to optionally prevent a formula with this requirement from
|
|
||||||
# pouring a bottle.
|
|
||||||
def pour_bottle?
|
|
||||||
true
|
|
||||||
end
|
|
||||||
|
|
||||||
# Overriding #fatal? is deprecated.
|
# Overriding #fatal? is deprecated.
|
||||||
# Pass a boolean to the fatal DSL method instead.
|
# Pass a boolean to the fatal DSL method instead.
|
||||||
def fatal?
|
def fatal?
|
||||||
|
|||||||
@ -14,10 +14,6 @@ class PythonRequirement < Requirement
|
|||||||
version == Version.new("2.7")
|
version == Version.new("2.7")
|
||||||
end
|
end
|
||||||
|
|
||||||
def pour_bottle?
|
|
||||||
build? || system_python?
|
|
||||||
end
|
|
||||||
|
|
||||||
env do
|
env do
|
||||||
short_version = python_short_version
|
short_version = python_short_version
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user