summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/deblistparser.cc
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-11-29 22:55:57 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2016-11-29 22:55:57 -0800
commitef1e4dfd2853abb2e8900c26c1c17bf053863e85 (patch)
tree3c8ee4c2b6232575c6f7b2979b462c5b565b22b1 /apt-pkg/deb/deblistparser.cc
parenta473295d01ed9c599926d9a8c212d4e1a404f78b (diff)
Most interfaces (Maemo) need a high-level name :/.
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
-rw-r--r--apt-pkg/deb/deblistparser.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc
index 878170d00..ec5787fb4 100644
--- a/apt-pkg/deb/deblistparser.cc
+++ b/apt-pkg/deb/deblistparser.cc
@@ -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)
{