From ef9615aebb8a7b504c3b5cd2610e3c8f5bb4de58 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Dec 2015 13:38:57 +0200 Subject: Various cleanups and improvements, INSTALL-DEV instructions --- brep/package-version-details.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'brep/package-version-details.cxx') 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 -- cgit v1.1