[issue28627] [alpine] shutil.copytree fail to copy a direcotry with broken symlinks

2019-02-10 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue28627] [alpine] shutil.copytree fail to copy a direcotry with broken symlinks

2018-04-20 Thread Martin Panter
Martin Panter added the comment: This looks like it may be covered by Issue 31940, about the “shutil.copystat” API. See Anthony’s initial proposal at . Max: I think you need the “else” branch to reraise the exception if “errno” doesn’t match. Per

[issue28627] [alpine] shutil.copytree fail to copy a direcotry with broken symlinks

2018-04-18 Thread Max Rees
Max Rees added the comment: Actually the symlinks don't need to be broken. It fails for any kind of symlink on musl. $ ls -l /tmp/symtest lrwxrwxrwx 1 mcrees mcrees 10 Apr 18 21:16 empty -> /var/empty -rw-r--r-- 1 mcrees mcrees 0 Apr 18 21:16 regular lrwxrwxrwx 1 mcrees mcrees 16 Apr 18 21:16

[issue28627] [alpine] shutil.copytree fail to copy a direcotry with broken symlinks

2016-11-06 Thread Israel Fruchter
Israel Fruchter added the comment: the failure looks like that: Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.5/shutil.py", line 359, in copytree raise Error(errors) shutil.Error: [('/bug/broken', '/temp/broken', "[Errno 95] Not supported: '/temp/b

[issue28627] [alpine] shutil.copytree fail to copy a direcotry with broken symlinks

2016-11-06 Thread Israel Fruchter
New submission from Israel Fruchter: this fails on python3.5-alpine and python3.6-alpine (works as fine in python2.7-alpine) cd /bug && ln -s /broken_path/to_nowhere broken python -c "import shutil; shutil.copytree('/bug', '/temp', symlinks=True)" Dockerfile example here: https://github.com/doc