keg: use resolved_path not realpath.

This guards against this being a non-symlink in which case it will fail.
This commit is contained in:
Mike McQuaid 2017-01-06 16:35:41 +00:00
parent 1a394aa7e5
commit 4497190593

View File

@ -598,7 +598,7 @@ class Keg
if src.symlink? || src.file?
Find.prune if File.basename(src) == ".DS_Store"
Find.prune if src.realpath == dst
Find.prune if src.resolved_path == dst
# Don't link pyc or pyo files because Python overwrites these
# cached object files and next time brew wants to link, the
# file is in the way.