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.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx
index 149c8f9..80a87ef 100644
--- a/mod/mod-package-version-details.cxx
+++ b/mod/mod-package-version-details.cxx
@@ -162,6 +162,8 @@ handle (request& rq, response& rs)
assert (pkg->location && pkg->sha256sum);
+ const repository_location& rl (pkg->internal_repository.load ()->location);
+
s << TABLE(CLASS="proplist", ID="version")
<< TBODY
@@ -171,9 +173,9 @@ handle (request& rq, response& rs)
<< TR_PRIORITY (pkg->priority)
<< TR_LICENSES (pkg->license_alternatives)
- << TR_LOCATION (pkg->internal_repository.object_id (), root)
- << TR_DOWNLOAD (pkg->internal_repository.load ()->location.string () +
- "/" + pkg->location->string ())
+ << TR_REPOSITORY (rl.canonical_name (), root)
+ << TR_LOCATION (rl)
+ << TR_DOWNLOAD (rl.string () + "/" + pkg->location->string ())
<< TR_SHA256SUM (*pkg->sha256sum)
<< ~TBODY
<< ~TABLE