A base class for chroots located in a local directory. More...
#include <sbuild-chroot-directory-base.h>


Public Member Functions | |
| virtual | ~chroot_directory_base () |
| The destructor. | |
| std::string const & | get_directory () const |
| Get the directory containing the chroot. | |
| void | set_directory (std::string const &directory) |
| Set the directory containing the chroot. | |
| virtual void | setup_env (chroot const &chroot, environment &env) const |
Protected Member Functions | |
| chroot_directory_base () | |
| The constructor. | |
| virtual void | get_details (chroot const &chroot, format_detail &detail) const |
| virtual void | get_keyfile (chroot const &chroot, keyfile &keyfile) const |
| virtual void | set_keyfile (chroot &chroot, keyfile const &keyfile, string_list &used_keys) |
Private Attributes | |
| std::string | directory |
| The directory to use. | |
Friends | |
| class | chroot |
A base class for chroots located in a local directory.
This class doesn't implement a chroot (get_chroot_type is not implemented). plain and directory chroots inherit from this class.
Originally plain inherited from the directory chroot, but this had to be changed when union support was introduced. As plain chroots don't run any setup scripts and basically just call 'chroot' on a directory, they can't support union based sessions.
| chroot_directory_base::chroot_directory_base | ( | ) | [protected] |
The constructor.
| chroot_directory_base::~chroot_directory_base | ( | ) | [virtual] |
The destructor.
| void chroot_directory_base::get_details | ( | chroot const & | chroot, | |
| format_detail & | detail | |||
| ) | const [protected, virtual] |
Reimplemented in sbuild::chroot_directory.
References sbuild::format_detail::add(), and get_directory().
| std::string const & chroot_directory_base::get_directory | ( | ) | const |
Get the directory containing the chroot.
References directory.
Referenced by get_details(), get_keyfile(), sbuild::chroot_plain::get_path(), and setup_env().
| void chroot_directory_base::get_keyfile | ( | chroot const & | chroot, | |
| keyfile & | keyfile | |||
| ) | const [protected, virtual] |
Reimplemented in sbuild::chroot_directory.
References get_directory(), sbuild::chroot::get_keyfile_name(), and sbuild::basic_keyfile< K, P >::set_object_value().
| void chroot_directory_base::set_directory | ( | std::string const & | directory | ) |
Set the directory containing the chroot.
| directory | the directory. |
References sbuild::chroot::DIRECTORY_ABS, and sbuild::is_absname().
Referenced by set_keyfile().
| void chroot_directory_base::set_keyfile | ( | chroot & | chroot, | |
| keyfile const & | keyfile, | |||
| string_list & | used_keys | |||
| ) | [protected, virtual] |
Reimplemented in sbuild::chroot_directory.
References sbuild::chroot::get_keyfile_name(), sbuild::basic_keyfile< K, P >::get_object_value(), sbuild::basic_keyfile< K, P >::has_key(), sbuild::keyfile_base::MISSING_KEY_NL, sbuild::keyfile_base::PRIORITY_DEPRECATED, sbuild::keyfile_base::PRIORITY_DISALLOWED, sbuild::keyfile_base::PRIORITY_OPTIONAL, and set_directory().
| void chroot_directory_base::setup_env | ( | chroot const & | chroot, | |
| environment & | env | |||
| ) | const [virtual] |
Reimplemented in sbuild::chroot_directory.
References sbuild::environment::add(), and get_directory().
friend class chroot [friend] |
Reimplemented in sbuild::chroot_directory, and sbuild::chroot_plain.
std::string sbuild::chroot_directory_base::directory [private] |
The directory to use.
Referenced by get_directory().
1.6.1