]> git.saurik.com Git - apt.git/commitdiff
* FindInCache() uses the correct file now
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 13 May 2005 19:56:27 +0000 (19:56 +0000)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 13 May 2005 19:56:27 +0000 (19:56 +0000)
apt-pkg/deb/debindexfile.cc

index c7c36b89a67a4f01110fcde3f81f1061281117ec..b57493b9e3e3fbc6b853fcd7fe5cecae1d6ce8f8 100644 (file)
@@ -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);