software_spec: deprecate prefix
for bottles.
Turns out we weren't actually using/checking this value at all (so I'd be very surprised if anyone is actually using it).
This commit is contained in:
parent
37fe150284
commit
0f0aa83fa1
@ -356,6 +356,15 @@ class BottleSpecification
|
||||
@root_url_specs = {}
|
||||
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 = {})
|
||||
if var.nil?
|
||||
@root_url ||= "#{Homebrew::EnvConfig.bottle_domain}/#{Utils::Bottles::Bintray.repository(tap)}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user