diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-04-26 19:15:29 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-04-26 19:15:29 +0200 |
commit | 05bb1e5dc88497b5e4b5ba684ace99c42d1881f9 (patch) | |
tree | ccade6d7f24c11bda7d1c4cac388a3850c21d051 /apt-pkg | |
parent | 160960eb83defb82b621fc1013262bc6c8e41aeb (diff) |
* apt-pkg/deb/debmetaindex.cc:
- do not download TranslationIndex if no Translation-* will be
downloaded later on anyway (Closes: #624218)
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/deb/debmetaindex.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-pkg/deb/debmetaindex.cc b/apt-pkg/deb/debmetaindex.cc index a6edab6b9..a91cc34e9 100644 --- a/apt-pkg/deb/debmetaindex.cc +++ b/apt-pkg/deb/debmetaindex.cc @@ -195,11 +195,14 @@ vector <struct IndexTarget *>* debReleaseIndex::ComputeIndexTargets() const { } } + std::vector<std::string> const lang = APT::Configuration::getLanguages(true); + if (lang.empty() == true) + return IndexTargets; + // get the Translations: // - if its a dists-style repository get the i18n/Index first // - if its flat try to acquire files by guessing if (Dist[Dist.size() - 1] == '/') { - std::vector<std::string> const lang = APT::Configuration::getLanguages(true); for (std::set<std::string>::const_iterator s = sections.begin(); s != sections.end(); ++s) { for (std::vector<std::string>::const_iterator l = lang.begin(); |