瀏覽代碼

* FindInCache() uses the correct file now

Michael Vogt 21 年之前
父節點
當前提交
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);