diff options
| author | Tim D. Smith | 2015-08-13 00:13:21 -0700 |
|---|---|---|
| committer | Tim D. Smith | 2015-08-15 20:24:20 -0700 |
| commit | 88e8e6cf600f8b3c88f07e49b83c41f45beb023a (patch) | |
| tree | 8584000cde197d821ffec5b8e05be8857ad095d3 /Library | |
| parent | f5642cb105dbe69443de080a30d7134407f97e33 (diff) | |
| download | brew-88e8e6cf600f8b3c88f07e49b83c41f45beb023a.tar.bz2 | |
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.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/keg.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 6ab8d4c1e..85b130517 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -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/ |
