Package: decopy
Version: 0.2.4.3-0.1
Severity: normal

decopy currently breaks when trying to parse any copyright file
that uses the DEP5 format but is incomplete. For example, this copyright
file:

``
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: *
License: Unknown

License: Unknown
``

results in:

Traceback (most recent call last):
  File "/usr/bin/decopy", line 11, in <module>
    load_entry_point('Decopy==0.2.4.3', 'console_scripts', 'decopy')()
  File "/usr/lib/python3/dist-packages/decopy/decopy.py", line 57, in main
    copyright_ = Copyright.build(filetree, options)
  File "/usr/lib/python3/dist-packages/decopy/dep5.py", line 62, in build
    copyright_ = Copyright(c)
  File "/usr/lib/python3/dist-packages/debian/copyright.py", line 155, in 
__init__
    pf = FilesParagraph(p, strict)
  File "/usr/lib/python3/dist-packages/debian/copyright.py", line 510, in 
__init__
    _complain('Files paragraph missing Copyright field', strict)
  File "/usr/lib/python3/dist-packages/debian/copyright.py", line 84, in 
_complain
    raise MachineReadableFormatError(msg)
debian.copyright.MachineReadableFormatError: Files paragraph missing Copyright 
field

Merge proposal in https://salsa.debian.org/debian/decopy/-/merge_requests/2 to 
address this.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.6.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages decopy depends on:
ii  bzip2                   1.0.8-3
ii  libimage-exiftool-perl  11.99-1
ii  python3                 3.8.2-3
ii  python3-debian          0.1.37
ii  python3-xdg             0.26-3
ii  xz-utils                5.2.4-1+b1

Versions of packages decopy recommends:
ii  python3-regex  0.1.20190819-2+b1
ii  python3-tqdm   4.43.0-1

decopy suggests no packages.

-- debconf-show failed

-- debsums errors found:
debsums: changed file /usr/lib/python3/dist-packages/decopy/dep5.py (from 
decopy package)

Reply via email to