]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/aptconfiguration.cc
fix section adding
[apt.git] / apt-pkg / aptconfiguration.cc
index 4f9b84e0045905ca337af6754f1436a16368bfc6..115d116168a5e7986c341e402e603c5aac230ae1 100644 (file)
@@ -453,7 +453,7 @@ void Configuration::setDefaultConfigurationForCompressors() {
        _config->CndSet("Dir::Bin::bzip2", "/bin/bzip2");
        _config->CndSet("Dir::Bin::xz", "/usr/bin/xz");
        if (FileExists(_config->FindFile("Dir::Bin::xz")) == true) {
-               _config->Clear("Dir::Bin::lzma");
+               _config->Set("Dir::Bin::lzma", _config->FindFile("Dir::Bin::xz"));
                _config->Set("APT::Compressor::lzma::Binary", "xz");
                if (_config->Exists("APT::Compressor::lzma::CompressArg") == false) {
                        _config->Set("APT::Compressor::lzma::CompressArg::", "--format=lzma");