Your message dated Sun, 07 Jun 2026 10:33:55 +0000
with message-id <[email protected]>
and subject line Bug#1109030: fixed in python-debian 1.1.1
has caused the Debian Bug report #1109030,
regarding python3-debian: Release.copy() fails trying to split multivalued 
fields that have already been split
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.)


-- 
1109030: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1109030
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-debian
Version: 1.0.1
Severity: normal
X-Debbugs-Cc: [email protected]

When trying to copy a `Release` object or any `_multivalued` subclass
the code calls the constructor via `self.__class__(self)` and then the
`_multivalued.__init__()` treats fields in ``_multivalued_fields` as
strings, even though they have already been parsed in the source object.

This leads to the following exception:

    Traceback (most recent call last):
      File "//home/em/deb822-test.py", line 18, in <module>
        r2 = r1.copy()
      File "/usr/lib/python3.13/site-packages/debian/deb822.py", line 602, in 
copy
        copy = self.__class__(self)
      File "/usr/lib/python3.13/site-packages/debian/deb822.py", line 1761, in 
__init__
        for line in filter(None, contents.splitlines()):   # type: str
                                 ^^^^^^^^^^^^^^^^^^^
    AttributeError: 'list' object has no attribute 'splitlines'

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

Kernel: Linux 6.15.4-200.fc42.x86_64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages python3-debian depends on:
ii  python3                     3.13.3-1
ii  python3-charset-normalizer  3.4.2-1

python3-debian recommends no packages.

Versions of packages python3-debian suggests:
pn  gpgv         <none>
ii  python3-apt  3.0.0
pn  zstd         <none>

-- no debconf information
import debian
from debian.deb822 import Release

txt = """
Suite: testing
Codename: trixie
MD5Sum:
 70ddf531b5b7dbd059eb3fdb88566d4b  1963340 contrib/Contents-all
"""
r1 = Release(txt)
assert "md5sum" in Release._multivalued_fields
assert r1["MD5Sum"] == [
    {
        "md5sum": "70ddf531b5b7dbd059eb3fdb88566d4b",
        "size": "1963340",
        "name": "contrib/Contents-all",
    }
]
try:
    r2 = r1.copy()
except:
    print(f"BUG: {debian.__version__ = }")
    raise
# BUG: debian.__version__ = '0.1.51.dev2+g67bda81'
# Traceback (most recent call last):
#   File "//home/em/deb822-test.py", line 18, in <module>
#     r2 = r1.copy()
#   File "/usr/lib/python3.13/site-packages/debian/deb822.py", line 602, in copy
#     copy = self.__class__(self)
#   File "/usr/lib/python3.13/site-packages/debian/deb822.py", line 1761, in 
__init__
#     for line in filter(None, contents.splitlines()):   # type: str
#                              ^^^^^^^^^^^^^^^^^^^
# AttributeError: 'list' object has no attribute 'splitlines'

--- End Message ---
--- Begin Message ---
Source: python-debian
Source-Version: 1.1.1
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: Sun, 07 Jun 2026 11:14:32 +0100
Source: python-debian
Architecture: source
Version: 1.1.1
Distribution: unstable
Urgency: medium
Maintainer: Debian python-debian Maintainers 
<[email protected]>
Changed-By: Jelmer Vernooij <[email protected]>
Closes: 1109030 1125014
Changes:
 python-debian (1.1.1) unstable; urgency=medium
 .
   [ Stuart Prescott ]
   * Move charset-normaliser to an optional dep group
   * Annotate additional deps with nocheck
   * Have dh_python3 add optional deps to Suggests
   * Update licence metadata format in pyproject.toml
   * Tweak tag_regex for tag2upload vs setuptools_scm compatibility
   * Don't raise exceptions on invalid arch specifications (Closes: #1125014)
   * Fix crash in copying multivalued Deb822 objects (Closes: #1109030)
   * Minor whitespace fixes
 .
   [ Jelmer Vernooij ]
   * Always build distribution tarball in CI
 .
   [ Christoph Steiger ]
   * Add Static-Built-Using to relations
Checksums-Sha1:
 11227acaec0f859e8fbe580f1e7c8a8bfef7ecee 2119 python-debian_1.1.1.dsc
 86378e173fa2be056d1fe2be0e90719f5dc064ca 199876 python-debian_1.1.1.tar.xz
 65ecdf96ee9cd9783d35401936b581f26c6fb924 7092 
python-debian_1.1.1_source.buildinfo
Checksums-Sha256:
 1f1804ab59b8054c63ae701ca9951f60b702600d13d75957886a2373f2f25024 2119 
python-debian_1.1.1.dsc
 59cc8a9a6236f6386ae622564e7d13c846e65cfa63948c9a75e02358dfeaac20 199876 
python-debian_1.1.1.tar.xz
 37cddcd0a83b3dd80886c9ac24cc543f0802be35b8db2dbaa86d2074f46905e6 7092 
python-debian_1.1.1_source.buildinfo
Files:
 f58dbe002b77be7401fcc03b81af33eb 2119 python optional python-debian_1.1.1.dsc
 6ed47b93514f0b86b21fa19a40fae76c 199876 python optional 
python-debian_1.1.1.tar.xz
 b25214144ded7ab2715c2ec35a064f82 7092 python optional 
python-debian_1.1.1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQFGBAEBCgAwFiEE45ORIHAv6kHRgdNzhp0ktO57TaYFAmolRNISHGplbG1lckBk
ZWJpYW4ub3JnAAoJEIadJLTue02mctkH/3OBo9BBvXtS418M8phCpXSjMVH96+j5
8MAKG+Vzemi9dLQjYz4eoT8IIROc+wnv3ynbX55l2WA3356mvQLA8yWFVDoOggkE
vZrSAXSAKNt9tbK0RuiJhtQbvQV2ponX0hYW8Ehho/mSDROTUGAtRAS4SS/AjclK
Njy9HO9fG04SsLzqlDWjSmk20EP5iDB46/AAg2CuzKMc7exfNQCVfAtEEIaAmAjC
89GKc63fzVO1rdgfLBrltMHW2NbA6PmG7RBuzFmGxBoOWWPLZeH6gLH6IkWN4NVX
cYClJejajQS2MhCiFkjdVezYTQl8lz+//Q6PYwQuTGxet+1GnqprOG0=
=UFu2
-----END PGP SIGNATURE-----

Attachment: pgp_uDF5YdJb8.pgp
Description: PGP signature


--- End Message ---

Reply via email to