From 44971905937ddf3e7815f069694eb7d87a217f63 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 6 Jan 2017 16:35:41 +0000 Subject: [PATCH] keg: use resolved_path not realpath. This guards against this being a non-symlink in which case it will fail. --- Library/Homebrew/keg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 59fed9ec34..4312c9454d 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -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.