Bug#1031674: python3-debian: DebFile().debcontrol() fails to get control file when not starting with ./
Léa Raya DÉCORNOD
lea at decornod.com
Mon Feb 20 08:42:25 GMT 2023
Package: python3-debian
Version: 0.1.49
Severity: normal
Dear Maintainer,
Thanks for developing python-debian.
When control file is named 'control' instead of './control' in control
archive, debcontrol() in DefFile fails to open it raising :
KeyError: "filename './control' not found"
dpkg-deb --info do not complain on the same .deb file.
(cargo-deb produce such .deb files)
Steps to reproduce :
cd /tmp
sudo apt install cargo python3-debian
cargo new testdeb
sed -i '/^version/aauthors = ["foo at example.org"]' testdeb/Cargo.toml
cd testdeb
cargo install cargo-deb
cargo deb
dpkg-deb --info target/debian/*.deb
python3 -c 'import sys; from debian import debfile; debfile.DebFile(sys.argv[1]).debcontrol()' target/debian/*.deb
Thanks,
--
Léa Raya DÉCORNOD
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.1.0-3-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-debian depends on:
ii python3 3.11.1-3
ii python3-chardet 5.1.0+dfsg-2
Versions of packages python3-debian recommends:
ii python3-apt 2.5.2+b1
ii zstd 1.5.2+dfsg2-3
Versions of packages python3-debian suggests:
ii gpgv 2.2.40-1
-- no debconf information
More information about the pkg-python-debian-maint
mailing list