Skip to content
Snippets Groups Projects
Commit 88e8e6cf authored by Tim D. Smith's avatar Tim D. Smith
Browse files

Don't try to link symlinks over their targets

If we have lib/python3.4/site-packages, which is a symlink to
HOMEBREW_PREFIX/lib/python3.4/site-packages, link will be confused. This
only appears after unlinking and relinking because this symlink is
created in post_install, which runs after the first link.

Fixes Homebrew/linuxbrew#502.

Closes Homebrew/homebrew#42891.
parent f5642cb1
No related branches found
No related tags found
No related merge requests found
......@@ -422,6 +422,7 @@ class Keg
if src.symlink? || src.file?
Find.prune if File.basename(src) == ".DS_Store"
Find.prune if src.realpath == dst
# Don't link pyc files because Python overwrites these cached object
# files and next time brew wants to link, the pyc file is in the way.
if src.extname == ".pyc" && src.to_s =~ /site-packages/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment