]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debmetaindex.cc
apt-pkg/deb/debindexfile.cc: kill off another TranslationsAvailable() usage that...
[apt.git] / apt-pkg / deb / debmetaindex.cc
index a6edab6b9f5174635660f31d7f10eaa817aa8d63..a91cc34e9b826b31aa99f733897342f90550aef7 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();