formula: make prefix_linked? use versioned prefix

otherwise whenever prefix is unversioned, prefix_Linked will be false
This commit is contained in:
ilovezfs 2017-01-04 10:27:39 -08:00
parent 6195d6592b
commit a68d38743a

View File

@ -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.