Control: found -1 dh-python/2.20150826
Control: retitle -1 dh-python: Symlink in package directory causes dh_python3 
crash: NotADirectoryError

I have experienced the same error. A deliberately-created symlink
causes ‘dh_python3’ to crash when it attempts to ‘os.rmdir’ the
symlink::

    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'


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_AU.utf8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dh-python depends on:
ii  libdpkg-perl  1.18.3
pn  python3:any   <none>

dh-python recommends no packages.

dh-python suggests no packages.

-- no debconf information

-- 
 \     “I cannot conceive that anybody will require multiplications at |
  `\   the rate of 40,000 or even 4,000 per hour …” —F. H. Wales, 1936 |
_o__)                                                                  |
Ben Finney <b...@benfinney.id.au>

Attachment: signature.asc
Description: PGP signature

Reply via email to