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:
Rene Gollent
2013-09-22 16:49:38 -04:00
parent 34f4c3ec4f
commit f4058a3f9f
2 changed files with 6 additions and 3 deletions
+5 -1
View File
@@ -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);
+1 -2
View File
@@ -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%");