HaikuDepot: Display the last copyright line instead of the first.

As Diver notes in #13006:
> I saw a few youtube videos with Haiku review where people were confused
> with package copyright year in HaikuDepot. They though this was when the
> package was last updated. HaikuDepot also only shows the very first line of
> copyright year, so if it's multiline (which is quite often) they see very
> old timestamps.

We should eventually display some sort of modified time as well as all
of the copyright lines, but at the very least, we can display the last line
instead of the first line, which usually is much newer than the first.
This commit is contained in:
Augustin Cavalier 2018-07-16 23:00:23 -04:00
parent 146a80c1cf
commit 0da0829bbc

View File

@ -526,7 +526,7 @@ PackageInfo::PackageInfo(const BPackageInfo& info)
BString publisherName = info.Vendor();
const BStringList& rightsList = info.CopyrightList();
if (rightsList.CountStrings() > 0)
publisherName = rightsList.StringAt(0);
publisherName = rightsList.Last();
if (!publisherName.IsEmpty())
publisherName.Prepend("© ");