Merge pull request #9482 from MikeMcQuaid/deprecate_bottle_prefix
software_spec: deprecate `prefix` for bottles.
This commit is contained in:
commit
4067b4d929
@ -359,6 +359,15 @@ class BottleSpecification
|
|||||||
@root_url_specs = {}
|
@root_url_specs = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def prefix=(prefix)
|
||||||
|
if [HOMEBREW_DEFAULT_PREFIX,
|
||||||
|
HOMEBREW_MACOS_ARM_DEFAULT_PREFIX,
|
||||||
|
HOMEBREW_LINUX_DEFAULT_PREFIX].exclude?(prefix)
|
||||||
|
odeprecated "setting `prefix` for bottles"
|
||||||
|
end
|
||||||
|
@prefix = prefix
|
||||||
|
end
|
||||||
|
|
||||||
def root_url(var = nil, specs = {})
|
def root_url(var = nil, specs = {})
|
||||||
if var.nil?
|
if var.nil?
|
||||||
@root_url ||= "#{Homebrew::EnvConfig.bottle_domain}/#{Utils::Bottles::Bintray.repository(tap)}"
|
@root_url ||= "#{Homebrew::EnvConfig.bottle_domain}/#{Utils::Bottles::Bintray.repository(tap)}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user