* apt-pkg/deb/debmetaindex.cc:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 26 Apr 2011 17:15:29 +0000 (19:15 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 26 Apr 2011 17:15:29 +0000 (19:15 +0200)
  - do not download TranslationIndex if no Translation-* will be
    downloaded later on anyway (Closes: #624218)

apt-pkg/deb/debmetaindex.cc
debian/changelog

index a6edab6..a91cc34 100644 (file)
@@ -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();
index 64cba02..115b4e0 100644 (file)
@@ -34,8 +34,11 @@ apt (0.8.14.2) UNRELEASED; urgency=low
   * doc/po/de.po:
     - undo the translation of the command 'dump' in manpage of apt-config
       as report by Burghard Grossmann on debian-l10n-german, thanks!
+  * apt-pkg/deb/debmetaindex.cc:
+    - do not download TranslationIndex if no Translation-* will be
+      downloaded later on anyway (Closes: #624218)
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Tue, 26 Apr 2011 17:35:24 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com>  Tue, 26 Apr 2011 19:12:41 +0200
 
 apt (0.8.14.1) unstable; urgency=low