diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2012-06-10 00:40:55 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2012-06-10 00:40:55 +0200 |
commit | f87fab03bade8a049b318df68dfa4c361fab944c (patch) | |
tree | aaedbfe1f4599b5584bb2cab9ec7ba2cd0c2a028 /test | |
parent | a98b6615254f8f7251d43c52de8f1f605c821ed7 (diff) | |
download | apt-f87fab03bade8a049b318df68dfa4c361fab944c.tar.gz |
* apt-pkg/aptconfiguration.cc:
- if APT::Languages=none save "none" in allCodes so that the detected
configuration is cached as intended (Closes: #674690, LP: #1004947)
Diffstat (limited to 'test')
-rw-r--r-- | test/libapt/getlanguages_test.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/libapt/getlanguages_test.cc b/test/libapt/getlanguages_test.cc index 274cf4aa4..cef89bde6 100644 --- a/test/libapt/getlanguages_test.cc +++ b/test/libapt/getlanguages_test.cc @@ -144,7 +144,8 @@ int main(int argc,char *argv[]) _config->Set("Acquire::Languages", "none"); vec = APT::Configuration::getLanguages(true, false, env); - equals(vec.size(), 0); + equals(vec.size(), 1); + equals(vec[0], "none"); _config->Set("Acquire::Languages", ""); _config->Set("Dir::State::lists", "/non-existing-dir"); @@ -168,7 +169,8 @@ int main(int argc,char *argv[]) _config->Set("Acquire::Languages", "none"); env[0] = "de_DE.UTF-8"; vec = APT::Configuration::getLanguages(true, false, env); - equals(vec.size(), 0); + equals(vec.size(), 1); + equals(vec[0], "none"); _config->Set("Acquire::Languages", ""); //FIXME: Remove support for this deprecated setting |