1
/* Copyright © 2005-2009 Roger Leigh <rleigh@debian.org>
3
* schroot is free software: you can redistribute it and/or modify it
4
* under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
8
* schroot is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see
15
* <http://www.gnu.org/licenses/>.
17
*********************************************************************/
21
#include "sbuild-chroot.h"
22
#include "sbuild-chroot-facet-source.h"
28
using namespace sbuild;
30
chroot_facet_source::chroot_facet_source ():
35
chroot_facet_source::~chroot_facet_source ()
39
chroot_facet_source::ptr
40
chroot_facet_source::create ()
42
return ptr(new chroot_facet_source());
46
chroot_facet_source::clone () const
48
return ptr(new chroot_facet_source(*this));
52
chroot_facet_source::get_name () const
54
static const std::string name("source");
60
chroot_facet_source::setup_env (chroot const& chroot,
61
environment& env) const
66
chroot_facet_source::get_session_flags (chroot const& chroot) const
68
return chroot::SESSION_NOFLAGS;
72
chroot_facet_source::get_details (chroot const& chroot,
73
format_detail& detail) const
78
chroot_facet_source::get_keyfile (chroot const& chroot,
79
keyfile& keyfile) const
84
chroot_facet_source::set_keyfile (chroot& chroot,
85
keyfile const& keyfile,
86
string_list& used_keys)