* apt-pkg/acquire-item.h, apt-pkg/deb/debmetaindex.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 16 Sep 2011 07:15:17 +0000 (09:15 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 16 Sep 2011 07:15:17 +0000 (09:15 +0200)
  - fix fetching language information by adding OptionalSubIndexTarget

apt-pkg/acquire-item.h
apt-pkg/deb/debmetaindex.cc
debian/changelog

index 13be17a..6c8341b 100644 (file)
@@ -691,6 +691,14 @@ class OptionalIndexTarget : public IndexTarget
                                                                        /*}}}*/
 /** \brief Information about an subindex index file. */                        /*{{{*/
 class SubIndexTarget : public IndexTarget
+{
+   virtual bool IsSubIndex() const {
+      return true;
+   }
+};
+                                                                       /*}}}*/
+/** \brief Information about an subindex index file. */                        /*{{{*/
+class OptionalSubIndexTarget : public OptionalIndexTarget
 {
    virtual bool IsSubIndex() const {
       return true;
index 81afb22..8cbf425 100644 (file)
@@ -221,7 +221,7 @@ vector <struct IndexTarget *>* debReleaseIndex::ComputeIndexTargets() const {
        } else {
                for (std::set<std::string>::const_iterator s = sections.begin();
                     s != sections.end(); ++s) {
-                       IndexTarget * Target = new OptionalIndexTarget();
+                       IndexTarget * Target = new OptionalSubIndexTarget();
                        Target->ShortDesc = "TranslationIndex";
                        Target->MetaKey = TranslationIndexURISuffix("Index", *s);
                        Target->URI = TranslationIndexURI("Index", *s);
index 8ba89ae..4fe2cc4 100644 (file)
@@ -18,6 +18,8 @@ apt (0.8.16~exp5) experimental; urgency=low
   * apt-pkg/contrib/configuration.cc:
     - fix double delete (LP: #848907)
     - ignore only the invalid regexp instead of all options
+  * apt-pkg/acquire-item.h, apt-pkg/deb/debmetaindex.cc:
+    - fix fetching language information by adding OptionalSubIndexTarget
 
  -- Michael Vogt <mvo@debian.org>  Fri, 05 Aug 2011 10:57:08 +0200