diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-15 13:38:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-15 13:38:57 +0200 |
commit | ef9615aebb8a7b504c3b5cd2610e3c8f5bb4de58 (patch) | |
tree | aca0be97a87005f177d0e015f132b117726cfe12 /brep/package-version-details.cxx | |
parent | d43e00ba64a5332100a8a2330d251051302b0193 (diff) |
Various cleanups and improvements, INSTALL-DEV instructions
Diffstat (limited to 'brep/package-version-details.cxx')
-rw-r--r-- | brep/package-version-details.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/brep/package-version-details.cxx b/brep/package-version-details.cxx index 8f6cd7d..9bc06f6 100644 --- a/brep/package-version-details.cxx +++ b/brep/package-version-details.cxx @@ -40,7 +40,7 @@ init (scanner& s) if (options_->root ().empty ()) options_->root (dir_path ("/")); - db_ = shared_database (options_->db_host (), options_->db_port ()); + db_ = shared_database (*options_); } bool brep::package_version_details:: @@ -152,7 +152,7 @@ handle (request& rq, response& rs) if (const auto& d = pkg->description) s << (full ? P_DESCRIPTION (*d, id) - : P_DESCRIPTION (*d, options_->description_len (), + : P_DESCRIPTION (*d, options_->package_description (), url (!full, id))); assert (pkg->location); @@ -302,7 +302,9 @@ handle (request& rq, response& rs) s << H3 << "Changes" << ~H3 << (full ? PRE_CHANGES (ch) - : PRE_CHANGES (ch, options_->changes_len (), url (!full, "changes"))); + : PRE_CHANGES (ch, + options_->package_changes (), + url (!full, "changes"))); s << ~DIV << ~BODY |