~brian-murray/ubuntu/oneiric/apt/block-fsys-tarfile

« back to all changes in this revision

Viewing changes to apt-pkg/deb/debmetaindex.cc

  • Committer: Michael Vogt
  • Date: 2011-06-28 21:41:29 UTC
  • mfrom: (1327.97.34 debian-sid)
  • Revision ID: michael.vogt@ubuntu.com-20110628214129-tait7qp81nvm7wjv
mergedĀ fromĀ debian-sid

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
                }
196
196
        }
197
197
 
 
198
        std::vector<std::string> const lang = APT::Configuration::getLanguages(true);
 
199
        if (lang.empty() == true)
 
200
                return IndexTargets;
 
201
 
198
202
        // get the Translations:
199
203
        // - if its a dists-style repository get the i18n/Index first
200
204
        // - if its flat try to acquire files by guessing
201
205
        if (Dist[Dist.size() - 1] == '/') {
202
 
                std::vector<std::string> const lang = APT::Configuration::getLanguages(true);
203
206
                for (std::set<std::string>::const_iterator s = sections.begin();
204
207
                     s != sections.end(); ++s) {
205
208
                        for (std::vector<std::string>::const_iterator l = lang.begin();