]> git.saurik.com Git - apt.git/commitdiff
* made the translation downloading work
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 13 May 2005 19:43:07 +0000 (19:43 +0000)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 13 May 2005 19:43:07 +0000 (19:43 +0000)
apt-pkg/deb/debindexfile.cc
apt-pkg/deb/debmetaindex.cc

index ffecbdfca2d73ffccce0ceca293bd8d088c2c349..c7c36b89a67a4f01110fcde3f81f1061281117ec 100644 (file)
@@ -572,6 +572,11 @@ class debIFTypePkg : public pkgIndexFile::Type
    };
    debIFTypePkg() {Label = "Debian Package Index";};
 };
    };
    debIFTypePkg() {Label = "Debian Package Index";};
 };
+class debIFTypeTrans : public debIFTypePkg
+{
+   public:
+   debIFTypeTrans() {Label = "Debian Translation Index";};
+};
 class debIFTypeStatus : public pkgIndexFile::Type
 {
    public:
 class debIFTypeStatus : public pkgIndexFile::Type
 {
    public:
@@ -584,6 +589,7 @@ class debIFTypeStatus : public pkgIndexFile::Type
 };
 static debIFTypeSrc _apt_Src;
 static debIFTypePkg _apt_Pkg;
 };
 static debIFTypeSrc _apt_Src;
 static debIFTypePkg _apt_Pkg;
+static debIFTypeTrans _apt_Trans;
 static debIFTypeStatus _apt_Status;
 
 const pkgIndexFile::Type *debSourcesIndex::GetType() const
 static debIFTypeStatus _apt_Status;
 
 const pkgIndexFile::Type *debSourcesIndex::GetType() const
@@ -596,7 +602,7 @@ const pkgIndexFile::Type *debPackagesIndex::GetType() const
 }
 const pkgIndexFile::Type *debTranslationsIndex::GetType() const
 {
 }
 const pkgIndexFile::Type *debTranslationsIndex::GetType() const
 {
-   return &_apt_Pkg;
+   return &_apt_Trans;
 }
 const pkgIndexFile::Type *debStatusIndex::GetType() const
 {
 }
 const pkgIndexFile::Type *debStatusIndex::GetType() const
 {
index 7f15fd2e1f17ea4ddd41d2b6cd135a2bf9c03390..9c7828d6ae28eb86803cbab95aaa3f16bd73e63e 100644 (file)
@@ -157,6 +157,14 @@ bool debReleaseIndex::GetIndexes(pkgAcquire *Owner, bool GetAll) const
                     ComputeIndexTargets(),
                     new indexRecords (Dist));
 
                     ComputeIndexTargets(),
                     new indexRecords (Dist));
 
+   // Queue the translations
+   for (vector<const debSectionEntry *>::const_iterator I = SectionEntries.begin(); 
+       I != SectionEntries.end(); I++) {
+
+      debTranslationsIndex i = debTranslationsIndex(URI,Dist,(*I)->Section);
+      i.GetIndexes(Owner);
+   }
+
    return true;
 }
 
    return true;
 }