summaryrefslogtreecommitdiff
path: root/apt-pkg/aptconfiguration.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-11-06 12:50:49 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-11-06 12:50:49 +0100
commit037454791fe7e59b33531b640ac0aced3b2ba6d7 (patch)
treebea9353ce3901cd59a3e6d482201a78652ef0040 /apt-pkg/aptconfiguration.cc
parentc1c49795f4ba33e56b5b741f07bba362f4d54c2e (diff)
* apt-pkg/aptconfiguration.cc:
- respect the none-force even in LANG=C (Closes: #602573)
Diffstat (limited to 'apt-pkg/aptconfiguration.cc')
-rw-r--r--apt-pkg/aptconfiguration.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/aptconfiguration.cc b/apt-pkg/aptconfiguration.cc
index 44f1f318a..5cc9277e4 100644
--- a/apt-pkg/aptconfiguration.cc
+++ b/apt-pkg/aptconfiguration.cc
@@ -168,7 +168,8 @@ std::vector<std::string> const Configuration::getLanguages(bool const &All,
// first cornercase: LANG=C, so we use only "en" Translation
if (envLong == "C") {
- codes.push_back("en");
+ if (_config->Find("Acquire::Languages","") != "none")
+ codes.push_back("en");
allCodes = codes;
allCodes.insert(allCodes.end(), builtin.begin(), builtin.end());
if (All == true)