summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debindexfile.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-05-13 19:43:07 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-05-13 19:43:07 +0000
commit97234432dbd652bc13a419dc37fda1e5cd3622a5 (patch)
tree1b509e9a878e59895194b8e4df64352ee4d9c599 /apt-pkg/deb/debindexfile.cc
parente82bdb118257ddea01a26f0c5503e06d17ae8794 (diff)
* made the translation downloading work
Diffstat (limited to 'apt-pkg/deb/debindexfile.cc')
-rw-r--r--apt-pkg/deb/debindexfile.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc
index ffecbdfca..c7c36b89a 100644
--- a/apt-pkg/deb/debindexfile.cc
+++ b/apt-pkg/deb/debindexfile.cc
@@ -572,6 +572,11 @@ class debIFTypePkg : public pkgIndexFile::Type
};
debIFTypePkg() {Label = "Debian Package Index";};
};
+class debIFTypeTrans : public debIFTypePkg
+{
+ public:
+ debIFTypeTrans() {Label = "Debian Translation Index";};
+};
class debIFTypeStatus : public pkgIndexFile::Type
{
public:
@@ -584,6 +589,7 @@ class debIFTypeStatus : public pkgIndexFile::Type
};
static debIFTypeSrc _apt_Src;
static debIFTypePkg _apt_Pkg;
+static debIFTypeTrans _apt_Trans;
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
{
- return &_apt_Pkg;
+ return &_apt_Trans;
}
const pkgIndexFile::Type *debStatusIndex::GetType() const
{