diff options
Diffstat (limited to 'bin/dchroot-dsa/main.cc')
-rw-r--r-- | bin/dchroot-dsa/main.cc | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/bin/dchroot-dsa/main.cc b/bin/dchroot-dsa/main.cc index 410af234..0a92ae91 100644 --- a/bin/dchroot-dsa/main.cc +++ b/bin/dchroot-dsa/main.cc @@ -35,29 +35,33 @@ using std::endl; using sbuild::_; using boost::format; -using namespace dchroot_dsa; - -main::main (schroot_common::options::ptr& options): - dchroot_common::main("dchroot-dsa", - // TRANSLATORS: '...' is an ellipsis e.g. U+2026, and '-' - // is an em-dash. - _("[OPTION…] chroot [COMMAND] — run command or shell in a chroot"), - options) -{ -} -main::~main () +namespace dchroot_dsa { -} -void -main::create_session(sbuild::session::operation sess_op) -{ - sbuild::log_debug(sbuild::DEBUG_INFO) - << "Creating dchroot-dsa session" << endl; + main::main (schroot_common::options::ptr& options): + dchroot_common::main("dchroot-dsa", + // TRANSLATORS: '...' is an ellipsis e.g. U+2026, and '-' + // is an em-dash. + _("[OPTION…] chroot [COMMAND] — run command or shell in a chroot"), + options) + { + } + + main::~main () + { + } + + void + main::create_session(sbuild::session::operation sess_op) + { + sbuild::log_debug(sbuild::DEBUG_INFO) + << "Creating dchroot-dsa session" << endl; + + this->session = sbuild::session::ptr + (new dchroot_dsa::session("schroot", + sess_op, + this->chroot_objects)); + } - this->session = sbuild::session::ptr - (new dchroot_dsa::session("schroot", - sess_op, - this->chroot_objects)); } |