Browse Source

* FindInCache() uses the correct file now

debian/1.8.y
Michael Vogt 17 years ago
parent
commit
4d34acf1a0
  1. 6
      apt-pkg/deb/debindexfile.cc

6
apt-pkg/deb/debindexfile.cc

@ -458,14 +458,14 @@ bool debTranslationsIndex::Merge(pkgCacheGenerator &Gen,OpProgress &Prog) const
/* */
pkgCache::PkgFileIterator debTranslationsIndex::FindInCache(pkgCache &Cache) const
{
string FileName = TranslationFile();
string FileName = IndexFile(LanguageCode().c_str());
pkgCache::PkgFileIterator File = Cache.FileBegin();
for (; File.end() == false; File++)
{
if (FileName != File.FileName())
continue;
struct stat St;
if (stat(File.FileName(),&St) != 0)
return pkgCache::PkgFileIterator(Cache);

Loading…
Cancel
Save