Public bug reported:

The current apt version defaults to {Packages,Sources,Whatever}.bz2 and
fallbacks to .gz. The .bz2 files are around 20% smaller than .gz files, but
uncompression takes about five times longer. That's something you don't want
on slow machines with fast network connections.

This little patch adds Acquire::CompressionTypes configuration list to define
the compression extension order. Also, this patch makes any future compression
formats a little bit easier to implement.

Tagging this beast with "worksforme" and "experimental". Also, my C++ is a
little bit rusty. It might make your system unusable or send froobazillions of
requests to .deb mirror you're using.

Sample apt.conf:

Acquire::CompressionTypes {
        ".gz";
        ".bz2";
}

A patch against upstream 0.6.46.3 can be found at
https://no.spoon.fi/~jvtm/patches/apt/apt-compression-
priority-0.6.46.3_001.patch

Debug::Acquire::http is quite helpful when testing this.

Using this on Edgy/amd64 and after the compilation finishes on
Etch/ixp4xx (NSLU2).

Not sure if this qualifies as a "bug report", but didn't find any
feature request / implementation posting. I'm also too lazy to create a
Debian specific bugzilla/whatever account.

** Affects: apt (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
patch for compression type priority (gz, bz2, possibly others)
https://launchpad.net/bugs/71746

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to