aboutsummaryrefslogtreecommitdiff
path: root/mod/mod-package-version-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-package-version-details.cxx
parentefb9c3e0e6b612d5bfadc7a2b984c14b5439335c (diff)
Implement build task, result and log requests handling
Diffstat (limited to 'mod/mod-package-version-details.cxx')
-rw-r--r--mod/mod-package-version-details.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx
index 89acf89..b0e6ead 100644
--- a/mod/mod-package-version-details.cxx
+++ b/mod/mod-package-version-details.cxx
@@ -43,7 +43,7 @@ init (scanner& s)
options_ = make_shared<options::package_version_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 ("/"));
@@ -130,11 +130,11 @@ handle (request& rq, response& rs)
shared_ptr<package> pkg;
session sn;
- transaction t (db_->begin ());
+ transaction t (package_db_->begin ());
try
{
- pkg = db_->load<package> (package_id (name, ver));
+ pkg = package_db_->load<package> (package_id (name, ver));
// If the requested package turned up to be an "external" one just
// respond that no "internal" package is present.