aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-repository-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-04 20:53:00 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-19 22:16:46 +0300
commitdbbc19b77dcf6ea828aabd64d7aa8cab9635aaf5 (patch)
treec0b9b449b7064dff3613628022224e6c18148c3e /mod/mod-repository-details.cxx
parentefb9c3e0e6b612d5bfadc7a2b984c14b5439335c (diff)
Implement build task, result and log requests handling
Diffstat (limited to 'mod/mod-repository-details.cxx')
-rw-r--r--mod/mod-repository-details.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/mod-repository-details.cxx b/mod/mod-repository-details.cxx
index ab87cb2..3a73955 100644
--- a/mod/mod-repository-details.cxx
+++ b/mod/mod-repository-details.cxx
@@ -49,7 +49,7 @@ init (scanner& s)
options_ = make_shared<options::repository_details> (
s, unknown_mode::fail, unknown_mode::fail);
- database_module::init (*options_);
+ database_module::init (*options_, options_->package_db_retry ());
if (options_->root ().empty ())
options_->root (dir_path ("/"));
@@ -90,12 +90,12 @@ handle (request& rq, response& rs)
<< DIV_HEADER (root, options_->logo (), options_->menu ())
<< DIV(ID="content");
- transaction t (db_->begin ());
+ transaction t (package_db_->begin ());
using query = query<repository>;
for (const auto& r:
- db_->query<repository> (
+ package_db_->query<repository> (
query::internal + "ORDER BY" + query::priority))
{
//@@ Feels like a lot of trouble (e.g., id_attribute()) for very