aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-version-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-24 19:08:29 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-24 19:08:29 +0300
commit581de7e14caeb79104702db4ce30d190b629059c (patch)
tree6d0476c352036b3bb91e33b623002845728773df /mod/mod-package-version-details.cxx
parentad7db3fcfef37bbec796cfd47933ca6393200dd8 (diff)
Add build-email value to package details page
Diffstat (limited to 'mod/mod-package-version-details.cxx')
-rw-r--r--mod/mod-package-version-details.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx
index b0e6ead..d2bcf5b 100644
--- a/mod/mod-package-version-details.cxx
+++ b/mod/mod-package-version-details.cxx
@@ -160,6 +160,7 @@ handle (request& rq, response& rs)
assert (pkg->location && pkg->sha256sum);
+ const email& em (pkg->email);
const repository_location& rl (pkg->internal_repository.load ()->location);
s << TABLE(CLASS="proplist", ID="version")
@@ -181,16 +182,20 @@ handle (request& rq, response& rs)
<< TABLE(CLASS="proplist", ID="package")
<< TBODY
<< TR_URL (pkg->url)
- << TR_EMAIL (pkg->email);
+ << TR_EMAIL (em);
const auto& pu (pkg->package_url);
if (pu && *pu != pkg->url)
s << TR_URL (*pu, "pkg-url");
const auto& pe (pkg->package_email);
- if (pe && *pe != pkg->email)
+ if (pe && *pe != em)
s << TR_EMAIL (*pe, "pkg-email");
+ const auto& be (pkg->build_email);
+ if (be && ((pe && *be != *pe) || (!pe && *be != em)))
+ s << TR_EMAIL (*be, "build-email");
+
s << TR_TAGS (pkg->tags, root)
<< ~TBODY
<< ~TABLE;