diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2016-11-29 22:55:57 -0800 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2020-07-17 00:22:23 -1000 |
commit | 5d4b12c21032486d7f1d71bbbed9c543e8a15aa3 (patch) | |
tree | 14ac2585c79da62ca741df21698895a652fb39d4 /apt-pkg/deb/deblistparser.cc | |
parent | 1c17882edec3cd95aa6a33cf3219ddce5dca89db (diff) |
Most interfaces (Maemo) need a high-level name :/.
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
-rw-r--r-- | apt-pkg/deb/deblistparser.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 3c148dd01..01fdf0079 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -158,6 +158,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) { |