Your message dated Sat, 27 Aug 2022 13:34:14 +0000
with message-id <[email protected]>
and subject line Bug#1017836: fixed in python-debian 0.1.47
has caused the Debian Bug report #1017836,
regarding python-debian: Copyright doesn't throw NotMachineReadableError anymore
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1017836: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017836
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-debian
Version: 0.1.46
Severity: normal
Dear Maintainer,
When passing a non-dep5 copyright file to Copyright, it use to throw
NotMachineReadableError, which is quite useful to categorise the file as
such. It doesn't do that anymore, throwing instead a generic ValueError.
To reproduce:
$ curl -SLO https://sources.debian.org/data/main/h/hello/2.10-2/debian/copyright
$ python3 -c "from debian.copyright import Copyright;
Copyright(open('copyright'))"
With python3-debian from bullseye:
```
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/debian/copyright.py", line 155, in
__init__
raise NotMachineReadableError('no paragraphs in input')
```
With python3-debian from unstable and testing:
```
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/debian/copyright.py", line 165, in
__init__
self.__file = parse_deb822_file(sequence=sequence, encoding=encoding)
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/parsing.py", line
3091, in parse_deb822_file
deb822_file = Deb822FileElement(LinkedList(tokens))
File "/usr/lib/python3/dist-packages/debian/_util.py", line 159, in __init__
self.extend(values)
File "/usr/lib/python3/dist-packages/debian/_util.py", line 272, in extend
for v in values:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line
103, in _impl
for token in token_stream:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line
103, in _impl
for token in token_stream:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/parsing.py", line
2968, in _build_field_with_value
for token_or_element in buffered_stream:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line
142, in __next__
return next(self._stream)
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line
103, in _impl
for token in token_stream:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/parsing.py", line
2904, in _build_value_line
for token in buffered_stream:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line
142, in __next__
return next(self._stream)
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/_util.py", line
103, in _impl
for token in token_stream:
File "/usr/lib/python3/dist-packages/debian/_deb822_repro/parsing.py", line
3027, in _abort_on_error_tokens
raise ValueError('Syntax or Parse error on the line:
"{error_as_text}"'.format(
ValueError: Syntax or Parse error on the line: "This is the Debian GNU
prepackaged version of the FSF's GNU hello\n"
```
Best,
--
Baptiste Beauplat - lyknode
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: python-debian
Source-Version: 0.1.47
Done: Jelmer Vernooij <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-debian, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Jelmer Vernooij <[email protected]> (supplier of updated python-debian package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 27 Aug 2022 14:23:48 +0100
Source: python-debian
Architecture: source
Version: 0.1.47
Distribution: unstable
Urgency: medium
Maintainer: Debian python-debian Maintainers
<[email protected]>
Changed-By: Jelmer Vernooij <[email protected]>
Closes: 1017836
Changes:
python-debian (0.1.47) unstable; urgency=medium
.
* copyright: Allow duplicate fields when strict=False.
* copyright: Fix regression, raise NotMachineReadableError for files
that clearly don't use DEP5. Closes: #1017836
Checksums-Sha1:
3d306ee03a2f762a73a3da332ed2222ec4fbb7f3 2246 python-debian_0.1.47.dsc
722aedc5a69f519fbce1ced16efa532e9c7907f8 189036 python-debian_0.1.47.tar.xz
5463c6594ebbca27d5a7f1ae22d62625f96b746e 7467
python-debian_0.1.47_amd64.buildinfo
Checksums-Sha256:
f1490155043cf47b2875af55e8dd841b70d1987faeb340cd55fe78344737c812 2246
python-debian_0.1.47.dsc
c1028bfeb6259cd04f1313bdf69ec81543c60dcb9429c78a4842978beb5eea9c 189036
python-debian_0.1.47.tar.xz
02d41f3142cec6c893778ade42c662ad61e58a5ffeec91aebaef61abf9b4fc31 7467
python-debian_0.1.47_amd64.buildinfo
Files:
1e1fc487436f39127d7651e773726b48 2246 python optional python-debian_0.1.47.dsc
032b23a5a0d73524b1ed0ae8a907088a 189036 python optional
python-debian_0.1.47.tar.xz
2cfb9bb582d1bd6de344a28c7b11575b 7467 python optional
python-debian_0.1.47_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEsjhixBXWVlpOhsvXV5wWDUyeI+gFAmMKGx8ACgkQV5wWDUye
I+jN+w/9G0se12cj3NoLU6fAgwhh+eGMhTNVXMxizUOJraF3WaRV7FOKtjNIbGvi
eWDwDC/ZSa5tuolB4TcyB1UE4uC3ymS5pZzbWS9u6eazJLG8y+AJ9v3hTPBvRv7A
8Avu3q7Ap5EwZi5KKz/bSaGaoSntTIc2HvrLDieImolkKF8BAFBWDvNTYwcBBf6R
2IRNJtFNwJOHzqLIo6uYF874/fxnGbR1d6OZx1Cv3m7XdHd4xVQdDIqHIOCVNkkz
f4pt9ZtWsXuJ/CpfdRQ5w9E6J47SNrfb8JxDJyaz6P6vLcZ75JE65ZN8o2nnMEa9
/xBlKy57LsxMZ0FEd2YxH1e0irCt6cNzz99f/TIvVv9yg3bSNrsjt8zs9XD6NCIN
Q4AW1aDDXONuRvC5f5q335r9OENs4u517lRzfALH1HyHqcpEurRRxSthYiqBcpYo
SpVEQrjP+HoPxDa8vyzSPZBhXBCJsVtQGLXToNwRdCQr/4p4SPg3PkuKHkcze3E8
a9TWxt1HTnLGoKBWGjLd52ev8gWv0sEZQ+4svnDTYFtO5Bvht31hPg1Itsg7dPFA
2LCgKdahea5Oe/XGUWEAuNZdzIBCT+fQcv0yJwNbRNjslr0dfr8ehHmqI8f+br/S
j18OL+cZzrXVgNk+2siYX1wRuWWB9gmWYeFCI0rgz9826OO/hPw=
=ResT
-----END PGP SIGNATURE-----
--- End Message ---
--
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-python-debian-maint