On Thu, Nov 24, 2011 at 01:26:44AM +0100, David Kalnischkies wrote: >On Wed, Nov 23, 2011 at 17:44, Steve McIntyre <st...@einval.com> wrote: >> The main change is that I've factored out the decompressor code in >> IndexCopy::CopyPackages() and TranslationsCopy::CopyTranslations() >> into a single common function, rather than the current repeated >> code. Then I've added support for bzip2 and xz there, by forking and >> execing the right decompression tool. I'm not a C++ developer by any >> means, as you'll probably tell. :-) You'll definitely want to move >> DecompressFile() somewhere else... > >Thanks! The patch is far from being bad, so don't worry. >(beside that it doesn't follow the insane indent style - but is that bad?) > >I played with it a bit more, but i am running out of time for today: >Attached patch should apply on experimental, for sid you need to >apply Julians first. It should work (tm), but is completely untested, >so it properly doesn't. Interesting is that DecompressFile is only a >slightly modified copy of MultiCompress::OpenCompress in ftparchive, >so we really want to move it somewhere accessible and your >FileFd suggestion seems like an ideal fit, i will try to work on that further.
Cool. :-) Hmmm. Unless I've managed to mis-apply your patch, I don't think it works. The code in DropRepeats is dropping all versions of Packages and Sources files, I think. Debug on my test DVD is showing the code finding Packages and Packages.gz files, then after DropRepeats I've got none. -- Steve McIntyre, Cambridge, UK. st...@einval.com Support the Campaign for Audiovisual Free Expression: http://www.eff.org/cafe/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org