Bug#222701: apt-utils: apt-extracttemplates fails to parse debs created/modified by ar
Package: apt-utils
Version: 0.5.14.1
Severity: normal
Tags: patch
The specification for the deb format ("man deb" is the best I could
find) say "The file is an ar archive with a magic number of !<arch>".
dpkg-deb uses "filename " as the filename string in the deb while
ar will use "filename/ ". While dpkg happily accepts both formats
apt-extracttemplates fails to strip the trailing '/' from the
filename. Since dpkg is the authorative implementation
apt-extracttemplates should follow its lead and also support both.
As a sidenote, the reason why this is important is that debsigs
modifies deb archives through ar and ar will add the trailing '/' to
all filenames. The same problem arises when deb files are build
manually with ar.
Attached is a one line patch to support trailing '/'. Please add this
as soon as possible. Until then signed debs and pre-configuring
packages with debconf will conflict.
MfG
Goswin
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux dual 2.4.21-ac4 #1 SMP Sat Jul 5 17:53:13 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=de_DE
Versions of packages apt-utils depends on:
ii apt [libapt-pkg-libc6.3-5-3 0.5.14 Advanced front-end for dpkg
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii libdb2 2:2.7.7.0-8 The Berkeley database routines (ru
ii libgcc1 1:3.3.2-4 GCC support library
ii libstdc++5 1:3.3.2-4 The GNU Standard C++ Library v3
-- no debconf information
Reply to: