🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #2891

Bug#1141352: python3-debian: merge_fields can raise ValueError with folded Binary fields

#2891
From: Mathis Faivre
Date: Sun, 01 Nov 2026 14:50
16 lines
2695 bytes
Hi,

I would like to take this one. I plan to split it in two:

1. A small fix in Deb822._merge_fields so a folded Binary merges with a single-line one, using Colin's test case. No API change.
2. Separately, the larger rework Colin describes: an explicit simple/folded/multiline type for merge_fields, and folding Binary when dumping, as dpkg-genchanges does.

Do you want (2) in python-debian, and if so, what API do you prefer: a field-type argument to merge_fields, or a per-class table of field types? I would start with (1) now and only do (2) if you agree on the shape.

Thanks,
Mathis
Technical Details
Message-ID: <NUF2F-9e4D-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NcI4h-2t6J-13@gated-at.bofh.it> <NcI4h-2t6J-13@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Mathis Faivre <debian@croque.top>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1141352: python3-debian: merge_fields can raise ValueError with folded Binary fields
Date: Sun, 01 Nov 2026 15:50:01 +0100
Message-ID: <NUF2F-9e4D-1@gated-at.bofh.it>
References: <NcI4h-2t6J-13@gated-at.bofh.it> <NcI4h-2t6J-13@gated-at.bofh.it>
X-Original-To: 1141352@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Sun Nov  1 14:47:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.94
Reply-To: Mathis Faivre <debian@croque.top>, 1141352@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-python-debian-maint@lists.alioth.debian.org
X-Debian-Pr-Message: followup 1141352
X-Debian-Pr-Package: python3-debian
X-Debian-Pr-Source: python-debian
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Report-Abuse: Please forward a copy of this message, including all headers, to <abuse-report@smtp2go.com>
Feedback-ID: 1302718m:1302718aqLq9fr:1302718sgIgjIyIHd
X-Smtpcorp-Track: hQDoD-be-aYi.epPxkv-cLmKX.kU0g0AuctAs
X-Greylist: delayed 903 seconds by postgrey-1.37 at buxtehude; Sun, 01 Nov 2026 14:44:06 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000087
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 16
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 01 Nov 2026 15:28:57 +0100
X-Original-Message-ID: <179354333782.99950.3612687347178486024@croque.top>
X-Original-References: <akd6WabKfKsvl3va@camorr.rosewood.vpn.ucam.org> <akd6WabKfKsvl3va@camorr.rosewood.vpn.ucam.org>