On Sat, Jun 17, 2006 at 08:31:02PM +0000, Julian Mehnle wrote: > Daniel Leidert wrote: > > reassign 373864 apt-utils > > retitle 373864 gzip-name gets mangled if apt-ftparchive is run via > > cron-job merge 373864 341326 > > thanks > > > > [...] > > it is the same bug: > > [...] > > I therefor reassigned, retitled and merged this report with 341326. It > > is not a debarchiver bug. > > Well, that's great and all, but what am I supposed to do now? > apt-ftparchive being known to be broken, and with bug #341326 not being > looked after since Nov 2005, shouldn't debarchiver NOT rely on that broken > tool? > > At the very least, debarchiver should explicitly recommend a work-around > such as the use of the "-a" switch to cause dpkg-scan{packages,sources} to > be used instead of apt-ftparchive. Would that be a good work-around?
Can someone please test the attached patch and let me know if it fixes the problem? Thanks, Michael -- Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo
=== modified file 'apt-inst/contrib/extracttar.cc' --- apt-inst/contrib/extracttar.cc +++ apt-inst/contrib/extracttar.cc @@ -136,7 +136,8 @@ const char *Args[3]; string confvar = string("dir::bin::") + DecompressProg; - Args[0] = _config->Find(confvar.c_str(),DecompressProg.c_str()).c_str(); + string argv0 = _config->Find(confvar.c_str(),DecompressProg.c_str()); + Args[0] = argv0.c_str(); Args[1] = "-d"; Args[2] = 0; execvp(Args[0],(char **)Args);