~ubuntu-branches/ubuntu/trusty/schroot/trusty

« back to all changes in this revision

Viewing changes to sbuild/sbuild-chroot-facet-source.cc

  • Committer: Bazaar Package Importer
  • Author(s): Roger Leigh
  • Date: 2009-11-07 10:46:54 UTC
  • mfrom: (1.1.20 upstream) (2.1.6 experimental)
  • Revision ID: james.westby@ubuntu.com-20091107104654-kk1fp1icv8dzfyfi
* New upstream development release.
* schroot:
  - Return success when ending a session and the operation
    succeeded (Closes: #554907).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright © 2005-2009  Roger Leigh <rleigh@debian.org>
 
2
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
16
 *
 
17
 *********************************************************************/
 
18
 
 
19
#include <config.h>
 
20
 
 
21
#include "sbuild-chroot.h"
 
22
#include "sbuild-chroot-facet-source.h"
 
23
 
 
24
#include <cassert>
 
25
 
 
26
using boost::format;
 
27
using std::endl;
 
28
using namespace sbuild;
 
29
 
 
30
chroot_facet_source::chroot_facet_source ():
 
31
  chroot_facet()
 
32
{
 
33
}
 
34
 
 
35
chroot_facet_source::~chroot_facet_source ()
 
36
{
 
37
}
 
38
 
 
39
chroot_facet_source::ptr
 
40
chroot_facet_source::create ()
 
41
{
 
42
  return ptr(new chroot_facet_source());
 
43
}
 
44
 
 
45
chroot_facet::ptr
 
46
chroot_facet_source::clone () const
 
47
{
 
48
  return ptr(new chroot_facet_source(*this));
 
49
}
 
50
 
 
51
std::string const&
 
52
chroot_facet_source::get_name () const
 
53
{
 
54
  static const std::string name("source");
 
55
 
 
56
  return name;
 
57
}
 
58
 
 
59
void
 
60
chroot_facet_source::setup_env (chroot const& chroot,
 
61
                                environment&  env) const
 
62
{
 
63
}
 
64
 
 
65
chroot::session_flags
 
66
chroot_facet_source::get_session_flags (chroot const& chroot) const
 
67
{
 
68
  return chroot::SESSION_NOFLAGS;
 
69
}
 
70
 
 
71
void
 
72
chroot_facet_source::get_details (chroot const&  chroot,
 
73
                                  format_detail& detail) const
 
74
{
 
75
}
 
76
 
 
77
void
 
78
chroot_facet_source::get_keyfile (chroot const& chroot,
 
79
                                  keyfile&      keyfile) const
 
80
{
 
81
}
 
82
 
 
83
void
 
84
chroot_facet_source::set_keyfile (chroot&        chroot,
 
85
                                  keyfile const& keyfile,
 
86
                                  string_list&   used_keys)
 
87
{
 
88
}