diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2016-11-29 22:55:57 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2016-11-29 22:55:57 -0800 |
commit | ef1e4dfd2853abb2e8900c26c1c17bf053863e85 (patch) | |
tree | 3c8ee4c2b6232575c6f7b2979b462c5b565b22b1 /apt-pkg/deb/debrecords.cc | |
parent | a473295d01ed9c599926d9a8c212d4e1a404f78b (diff) |
Most interfaces (Maemo) need a high-level name :/.
Diffstat (limited to 'apt-pkg/deb/debrecords.cc')
-rw-r--r-- | apt-pkg/deb/debrecords.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-pkg/deb/debrecords.cc b/apt-pkg/deb/debrecords.cc index a132f34a6..6d642c7b8 100644 --- a/apt-pkg/deb/debrecords.cc +++ b/apt-pkg/deb/debrecords.cc @@ -74,6 +74,15 @@ string debRecordParserBase::Name() return Result; } /*}}}*/ +// RecordParserBase::Display - Return the package homepage /*{{{*/ +string debRecordParserBase::Display() +{ + string display(Section.FindS("Name")); + if (display.empty()) + display = Section.FindS("Maemo-Display-Name"); + return display; +} + /*}}}*/ // RecordParserBase::Homepage - Return the package homepage /*{{{*/ string debRecordParserBase::Homepage() { |