aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-version-details.cxx
diff options
context:
space:
mode:
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;