Explorar o código

* FindInCache() uses the correct file now

Michael Vogt %!s(int64=21) %!d(string=hai) anos
pai
achega
4d34acf1a0
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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);