2015-12-04 02:00:19 +01:00
|
|
|
diff -u -r ../apt-1.1.3/apt-pkg/aptconfiguration.cc ./apt-pkg/aptconfiguration.cc
|
|
|
|
--- ../apt-1.1.3/apt-pkg/aptconfiguration.cc 2015-11-30 03:08:24.000000000 -0500
|
|
|
|
+++ ./apt-pkg/aptconfiguration.cc 2015-12-03 18:16:35.167212811 -0500
|
|
|
|
@@ -35,8 +35,8 @@
|
2015-06-13 01:03:31 +02:00
|
|
|
// setDefaultConfigurationForCompressors /*{{{*/
|
2015-12-04 02:00:19 +01:00
|
|
|
static void setDefaultConfigurationForCompressors() {
|
2015-06-13 01:03:31 +02:00
|
|
|
// Set default application paths to check for optional compression types
|
|
|
|
- _config->CndSet("Dir::Bin::bzip2", "/bin/bzip2");
|
|
|
|
- _config->CndSet("Dir::Bin::xz", "/usr/bin/xz");
|
|
|
|
+ _config->CndSet("Dir::Bin::bzip2", "bin/bzip2");
|
|
|
|
+ _config->CndSet("Dir::Bin::xz", "bin/xz");
|
|
|
|
if (FileExists(_config->FindFile("Dir::Bin::xz")) == true) {
|
|
|
|
_config->Set("Dir::Bin::lzma", _config->FindFile("Dir::Bin::xz"));
|
|
|
|
_config->Set("APT::Compressor::lzma::Binary", "xz");
|
2015-12-04 02:00:19 +01:00
|
|
|
@@ -49,7 +49,7 @@
|
2015-06-13 01:03:31 +02:00
|
|
|
_config->Set("APT::Compressor::lzma::UncompressArg::", "-d");
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
- _config->CndSet("Dir::Bin::lzma", "/usr/bin/lzma");
|
|
|
|
+ _config->CndSet("Dir::Bin::lzma", "bin/lzma");
|
|
|
|
if (_config->Exists("APT::Compressor::lzma::CompressArg") == false) {
|
|
|
|
_config->Set("APT::Compressor::lzma::CompressArg::", "--suffix=");
|
|
|
|
_config->Set("APT::Compressor::lzma::CompressArg::", "-9");
|
2015-12-04 02:00:19 +01:00
|
|
|
@@ -218,7 +218,7 @@
|
|
|
|
// get the environment language codes: LC_MESSAGES (and later LANGUAGE)
|
|
|
|
// we extract both, a long and a short code and then we will
|
|
|
|
// check if we actually need both (rare) or if the short is enough
|
|
|
|
- string const envMsg = string(Locale == 0 ? ::setlocale(LC_MESSAGES, NULL) : *Locale);
|
|
|
|
+ string const envMsg = "en_US.UTF-8"; // string(Locale == 0 ? ::setlocale(LC_MESSAGES, NULL) : *Locale);
|
|
|
|
size_t const lenShort = (envMsg.find('_') != string::npos) ? envMsg.find('_') : 2;
|
|
|
|
size_t const lenLong = (envMsg.find_first_of(".@") != string::npos) ? envMsg.find_first_of(".@") : (lenShort + 3);
|
|
|
|
|