* apt-pkg/pkgcachegen.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 19 Jan 2009 11:54:05 +0000 (12:54 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 19 Jan 2009 11:54:05 +0000 (12:54 +0100)
  - fix apt-cache search for localized description
    (closes: #512110)

apt-pkg/pkgcachegen.cc
debian/changelog

index f71547f..397c198 100644 (file)
@@ -143,7 +143,7 @@ bool pkgCacheGenerator::MergeList(ListParser &List,
 
            // don't add a new description if we have one for the given
            // md5 && language
-           for ( ; Desc.end() == false; LastDesc = &Desc->NextDesc, Desc++)
+           for ( ; Desc.end() == false; Desc++)
               if (MD5SumValue(Desc.md5()) == CurMd5 && 
                   Desc.LanguageCode() == List.DescriptionLanguage())
                  duplicate=true;
index 2520be8..ab93f28 100644 (file)
@@ -1,5 +1,11 @@
 apt (0.7.21) UNRELEASED; urgency=low
 
+  [ Michael Vogt ]
+  * apt-pkg/pkgcachegen.cc:
+    - fix apt-cache search for localized description 
+      (closes: #512110)
+  
+  [ Christian Perrier ]
   * Translations:
     - fr.po: fix spelling error to "défectueux". Thanks to Thomas Péteul.