HaikuDepot: Adjust displayed publisher.
- If available, show the package's copyright information for the publisher rather than the vendor, as the latter simply indicates the maintainer of the repository rather than the actual developers of the software contained in the package.
This commit is contained in:
@@ -405,10 +405,14 @@ MainWindow::_RefreshPackageList()
|
||||
BString publisherURL;
|
||||
if (repoPackageInfo.URLList().CountStrings() > 0)
|
||||
publisherURL = repoPackageInfo.URLList().StringAt(0);
|
||||
const BStringList& rightsList = repoPackageInfo.CopyrightList();
|
||||
BString publisherName = repoPackageInfo.Vendor();
|
||||
if (rightsList.CountStrings() > 0)
|
||||
publisherName = rightsList.StringAt(0);
|
||||
modelInfo.SetTo(new(std::nothrow) PackageInfo(NULL,
|
||||
repoPackageInfo.Name(),
|
||||
repoPackageInfo.Version().ToString(),
|
||||
PublisherInfo(BitmapRef(), repoPackageInfo.Vendor(),
|
||||
PublisherInfo(BitmapRef(), publisherName,
|
||||
"", publisherURL), repoPackageInfo.Summary(),
|
||||
repoPackageInfo.Description(), ""),
|
||||
true);
|
||||
|
||||
@@ -431,8 +431,7 @@ public:
|
||||
|
||||
fTitleView->SetText(package.Title());
|
||||
|
||||
BString publisher = B_TRANSLATE("by %Publisher%");
|
||||
publisher.ReplaceAll("%Publisher%", package.Publisher().Name());
|
||||
BString publisher = package.Publisher().Name();
|
||||
fPublisherView->SetText(publisher);
|
||||
|
||||
BString version = B_TRANSLATE("%Version%");
|
||||
|
||||
Reference in New Issue
Block a user