* apt-pkg/aptconfiguration.cc:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 22 Feb 2011 17:11:10 +0000 (18:11 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 22 Feb 2011 17:11:10 +0000 (18:11 +0100)
  - support download of xz-compressed indexes files

apt-pkg/aptconfiguration.cc
debian/changelog
methods/makefile

index 3cf4d24..9ded431 100644 (file)
@@ -38,11 +38,13 @@ const Configuration::getCompressionTypes(bool const &Cached) {
 
        // setup the defaults for the compressiontypes => method mapping
        _config->CndSet("Acquire::CompressionTypes::bz2","bzip2");
+       _config->CndSet("Acquire::CompressionTypes::xz","xz");
        _config->CndSet("Acquire::CompressionTypes::lzma","lzma");
        _config->CndSet("Acquire::CompressionTypes::gz","gzip");
 
        // Set default application paths to check for optional compression types
        _config->CndSet("Dir::Bin::lzma", "/usr/bin/lzma");
+       _config->CndSet("Dir::Bin::xz", "/usr/bin/xz");
        _config->CndSet("Dir::Bin::bzip2", "/bin/bzip2");
 
        // accept non-list order as override setting for config settings on commandline
index 92ae058..f0f0d34 100644 (file)
@@ -13,8 +13,10 @@ apt (0.8.11.6) UNRELEASED; urgency=low
     - ensure that Date and Valid-Until time strings are not localised
     - add options to disable specific checksums for Indexes
     - include xz-compressed Packages and Sources files in Release file
+  * apt-pkg/aptconfiguration.cc:
+    - support download of xz-compressed indexes files
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Tue, 22 Feb 2011 14:59:51 +0100
+ -- David Kalnischkies <kalnischkies@gmail.com>  Tue, 22 Feb 2011 18:10:30 +0100
 
 apt (0.8.11.5) unstable; urgency=low
 
index 4ee356c..6ba5105 100644 (file)
@@ -94,8 +94,8 @@ SOURCE = bzip2.cc
 include $(PROGRAM_H)
 
 # SSH and lzma method symlink
-binary: $(BIN)/ssh $(BIN)/lzma
-veryclean: clean-$(BIN)/ssh clean-$(BIN)/lzma
+binary: $(BIN)/ssh $(BIN)/lzma $(BIN)/xz
+veryclean: clean-$(BIN)/ssh clean-$(BIN)/lzma clean-$(BIN)/xz
 
 $(BIN)/ssh:
        echo "Installing ssh method link"
@@ -108,3 +108,9 @@ $(BIN)/lzma:
        ln -fs bzip2 $(BIN)/lzma
 clean-$(BIN)/lzma:
        -rm $(BIN)/lzma
+
+$(BIN)/xz:
+       echo "Installing xz method link"
+       ln -fs bzip2 $(BIN)/xz
+clean-$(BIN)/xz:
+       -rm $(BIN)/xz