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

Bug#376777: apt-utils: apt-ftparchive fails to generate Contents files



On Wed, Jul 05, 2006 at 11:31:51PM +1000, Anthony Towns wrote:
> package apt-utils
> tag 376777 - help
> tag 376777 + patch
> thanks
> 
> I'm pretty sure this bug is simply due to misuse of auto_ptr in writer.cc

Okay, I've no idea if this is right or not now; but it's not the real bug; and
if it were, there's more to it than just that one assignment.

The real bug is in tagfile.cc, in particular the patch "fixing" Bug#350025
-- using MMap doesn't work if your Fd is a pipe, which it is if you point
apt-ftparchive at a suite that doesn't have an uncompressed Packages file,
and ask it to generate Contents.

Fix is reverting the patch, at least for the case where your input file
size is empty.

Cheers,
aj

Attachment: signature.asc
Description: Digital signature


Reply to: