[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#222701: apt-utils: apt-extracttemplates fails to parse debs created/modified by ar



On Tue, 2 Dec 2003, Goswin Brederlow wrote:

> 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.

apt-extracttemplates is wrong.  It should be accepting of what it allows, just
as dpkg does.

Creation of debs should not use the / form, however.




Reply to: