Просмотр исходного кода

* FindInCache() uses the correct file now

Michael Vogt лет назад: 21
Родитель
Сommit
4d34acf1a0
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      apt-pkg/deb/debindexfile.cc

+ 3 - 3
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);