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

Mathis Faivre debian at croque.top
Sun Nov 1 14:28:57 GMT 2026


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



More information about the pkg-python-debian-maint mailing list