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

Re: Bug#81657: should support downloading Packages instead of Packages.gz



On Tue, 9 Jan 2001, Brian May wrote:

> I can't see how to force apt-get to download the Packages file instead
> of Packages.gz.

You can't, without writing a custom acquire bit..

Regrettably, a general option for this is really ugly because the only way
to make it useful is to only do it for Packages, and even then those might
go away eventually too.

I'd really rather someone write a proper rproxy connection..

But, if you want to really do it you can make a change in APT 4, in the
file apt-pkg/deb/debindexfile.cc, in the function debPackagesIndex::GetIndexes,
so that it reads more like:

   if (_config->FindB("Acquire::CompressedIndexes",true) == true)
      new pkgAcqIndex(Owner,IndexURI("Packages"),Info("Packages"),"Packages");
   else
      new pkgAcqIndexRel(Owner,IndexURI("Packages"),Info("Packages"),"Packages");

instead of:
   new pkgAcqIndex(Owner,IndexURI("Packages"),Info("Packages"),"Packages");

However, that is so amazingly non-general that I don't really want to have
it officially supported.

Jason



Reply to: