aboutsummaryrefslogtreecommitdiff
path: root/brep/mod-package-version-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-03-07 19:11:31 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-03-09 16:22:06 +0300
commited0dd177c63bb7758e8633ffe26de2a8bc315d1b (patch)
tree0d4c9b987ef79a96e1509bceb98e8d254bd99669 /brep/mod-package-version-details.cxx
parentb72424fca7a6af6ff7921101c450850fef875152 (diff)
Display sha256sum on the package version details page
Diffstat (limited to 'brep/mod-package-version-details.cxx')
-rw-r--r--brep/mod-package-version-details.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/brep/mod-package-version-details.cxx b/brep/mod-package-version-details.cxx
index cbf9c86..992b829 100644
--- a/brep/mod-package-version-details.cxx
+++ b/brep/mod-package-version-details.cxx
@@ -161,7 +161,7 @@ handle (request& rq, response& rs)
: P_DESCRIPTION (*d, options_->package_description (),
url (!full, id)));
- assert (pkg->location);
+ assert (pkg->location && pkg->sha256sum);
s << TABLE(CLASS="proplist", ID="version")
<< TBODY
@@ -175,6 +175,7 @@ handle (request& rq, response& rs)
<< TR_LOCATION (pkg->internal_repository.object_id (), root)
<< TR_DOWNLOAD (pkg->internal_repository.load ()->location.string () +
"/" + pkg->location->string ())
+ << TR_SHA256SUM (*pkg->sha256sum)
<< ~TBODY
<< ~TABLE