summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-05-13 19:56:27 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-05-13 19:56:27 +0000
commit4d34acf1a0c8319fa498d4dd6ac5cfd369d3c29e (patch)
tree3abedd5e438120172fe96234ca4039e164ff5198 /apt-pkg/deb
parent97234432dbd652bc13a419dc37fda1e5cd3622a5 (diff)
* FindInCache() uses the correct file now
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r--apt-pkg/deb/debindexfile.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc
index c7c36b89a..b57493b9e 100644
--- a/apt-pkg/deb/debindexfile.cc
+++ b/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);