]> git.saurik.com Git - apt.git/commit
try xz instead of bz2 first for compressed files
authorDavid Kalnischkies <david@kalnischkies.de>
Sat, 29 Aug 2015 17:55:19 +0000 (19:55 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Sat, 29 Aug 2015 17:55:19 +0000 (19:55 +0200)
commite93b4028825648bb29074a1422287e2cb435b0de
treeb7de2ff893ec7d9b421e96b05fa507c1921675ba
parent9adb9778d11db138d645e037e092db1fb64b5d4a
try xz instead of bz2 first for compressed files

xz has pretty much won "the compressor war" and e.g. the Debian archive
doesn't even distribute bz2 anymore in favor of 'xz' and 'gz', so by
changing the default order we have a more realistic --print-uris
behavior as it will always show the first compressor.

In practice this effects repositories without a Release file (very bad,
we don't want to support them anymore anyhow) as xz will be tried before
bz2 now [which is probably not available, but so might be bz2…] AND
repositories which provide both, bz2 and xz (which isn't too common) in
sofar as apt will now download xz instead of bz2.

Users with special needs can stick with bz2 as first compressor tried
with Acquire::CompressionTypes::Order:: "bz2"; (see man apt.conf) – but
users with special needs usually prefer "gz" anyhow, so the realworld
change is expected to be very low.
apt-pkg/aptconfiguration.cc
test/integration/test-apt-acquire-additional-files
test/integration/test-apt-sources-deb822