]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/deblistparser.cc
Most interfaces (Maemo) need a high-level name :/.
[apt.git] / apt-pkg / deb / deblistparser.cc
index 878170d0074eeabecb098efa34a94b4f047908b7..ec5787fb4d10710404b19007fe6d6fca24aeafe8 100644 (file)
@@ -148,6 +148,15 @@ bool debListParser::NewVersion(pkgCache::VerIterator &Ver)
    const char *Start;
    const char *Stop;
 
+   if (Section.Find("Name",Start,Stop) == true)
+   {
+      Ver->Display = WriteString(Start, Stop - Start);
+   }
+   else if (Section.Find("Maemo-Display-Name",Start,Stop) == true)
+   {
+      Ver->Display = WriteString(Start, Stop - Start);
+   }
+
    // Parse the section
    if (Section.Find(pkgTagSection::Key::Section,Start,Stop) == true)
    {