formula: make prefix_linked? use versioned prefix
otherwise whenever prefix is unversioned, prefix_Linked will be false
This commit is contained in:
parent
6195d6592b
commit
a68d38743a
@ -574,7 +574,10 @@ class Formula
|
|||||||
# Is formula's linked keg points to the prefix.
|
# Is formula's linked keg points to the prefix.
|
||||||
def prefix_linked?(v = pkg_version)
|
def prefix_linked?(v = pkg_version)
|
||||||
return false unless linked?
|
return false unless linked?
|
||||||
linked_keg.resolved_path == prefix(v)
|
@versioned_prefix = true
|
||||||
|
result = linked_keg.resolved_path == prefix(v)
|
||||||
|
@versioned_prefix = false
|
||||||
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
# {PkgVersion} of the linked keg for the formula.
|
# {PkgVersion} of the linked keg for the formula.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user