Fix bottles on non-Lion.
This commit is contained in:
parent
64457b2315
commit
85452c5e91
@ -10,14 +10,7 @@ def bottles_supported?
|
|||||||
end
|
end
|
||||||
|
|
||||||
def install_bottle? f
|
def install_bottle? f
|
||||||
!ARGV.build_from_source? && bottle_current?(f) && bottle_native?(f)
|
!ARGV.build_from_source? && bottle_current?(f)
|
||||||
end
|
|
||||||
|
|
||||||
def bottle_native? f
|
|
||||||
return true if bottle_native_regex.match(f.bottle_url)
|
|
||||||
# old brew bottle style
|
|
||||||
return true if MacOS.lion? && old_bottle_regex.match(f.bottle_url)
|
|
||||||
return false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def built_bottle? f
|
def built_bottle? f
|
||||||
@ -25,7 +18,7 @@ def built_bottle? f
|
|||||||
end
|
end
|
||||||
|
|
||||||
def bottle_current? f
|
def bottle_current? f
|
||||||
!f.bottle_url.nil? && Pathname.new(f.bottle_url).version == f.version
|
f.bottle_url && f.bottle_sha1 && Pathname.new(f.bottle_url).version == f.version
|
||||||
end
|
end
|
||||||
|
|
||||||
def bottle_native_suffix
|
def bottle_native_suffix
|
||||||
|
|||||||
@ -664,7 +664,7 @@ private
|
|||||||
key, value = sha1.shift
|
key, value = sha1.shift
|
||||||
@sha1 = key if value == MacOS.cat
|
@sha1 = key if value == MacOS.cat
|
||||||
when String
|
when String
|
||||||
@sha1 = sha1
|
@sha1 = sha1 if MacOS.lion?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user