On 18-Oct-2015, Ben Finney wrote: > I have experienced the same error. A deliberately-created symlink > causes ‘dh_python3’ to crash when it attempts to ‘os.rmdir’ the > symlink::
For comparison, that happens only with ‘dh_python3’ and not with ‘dh_python2’. $ ls -l debian/*/usr/lib/python*/dist-packages/coverage/htmlfiles lrwxrwxrwx 1 pbuilder pbuilder 43 Oct 18 19:52 debian/python-coverage/usr/lib/python2.7/dist-packages/coverage/htmlfiles -> ../../../../share/python-coverage/htmlfiles lrwxrwxrwx 1 pbuilder pbuilder 48 Oct 18 19:52 debian/python3-coverage-dbg/usr/lib/python3.4/dist-packages/coverage/htmlfiles -> ../../../../share/python3-coverage-dbg/htmlfiles lrwxrwxrwx 1 pbuilder pbuilder 48 Oct 18 19:52 debian/python3-coverage-dbg/usr/lib/python3.5/dist-packages/coverage/htmlfiles -> ../../../../share/python3-coverage-dbg/htmlfiles lrwxrwxrwx 1 pbuilder pbuilder 44 Oct 18 19:52 debian/python3-coverage/usr/lib/python3.4/dist-packages/coverage/htmlfiles -> ../../../../share/python3-coverage/htmlfiles lrwxrwxrwx 1 pbuilder pbuilder 44 Oct 18 19:52 debian/python3-coverage/usr/lib/python3.5/dist-packages/coverage/htmlfiles -> ../../../../share/python3-coverage/htmlfiles lrwxrwxrwx 1 pbuilder pbuilder 44 Oct 18 19:52 debian/python3-coverage/usr/lib/python3/dist-packages/coverage/htmlfiles -> ../../../../share/python3-coverage/htmlfiles $ dh_python2 -O--buildsystem=pybuild $ dh_python3 -O--buildsystem=pybuild Traceback (most recent call last): File "/usr/bin/dh_python3", line 256, in <module> main() File "/usr/bin/dh_python3", line 180, in main fix_locations(package, interpreter, SUPPORTED, options) File "/usr/share/dh-python/dhpython/fs.py", line 48, in fix_locations share_files(srcdir, dstdir, interpreter, options) File "/usr/share/dh-python/dhpython/fs.py", line 99, in share_files share_files(fpath1, fpath2, interpreter, options) File "/usr/share/dh-python/dhpython/fs.py", line 99, in share_files share_files(fpath1, fpath2, interpreter, options) File "/usr/share/dh-python/dhpython/fs.py", line 105, in share_files os.rmdir(srcdir) NotADirectoryError: [Errno 20] Not a directory: 'debian/python3-coverage/usr/lib/python3.4/dist-packages/coverage/htmlfiles' -- \ “Instead of having ‘answers’ on a math test, they should just | `\ call them ‘impressions’, and if you got a different | _o__) ‘impression’, so what, can't we all be brothers?” —Jack Handey | Ben Finney <b...@benfinney.id.au>
signature.asc
Description: PGP signature