19 #ifndef SBUILD_CHROOT_FACET_FILE_H
20 #define SBUILD_CHROOT_FACET_FILE_H
22 #include <sbuild/chroot/chroot.h>
23 #include <sbuild/chroot/facet/facet.h>
24 #include <sbuild/chroot/facet/source-setup.h>
25 #include <sbuild/chroot/facet/storage.h>
48 typedef std::shared_ptr<file>
ptr;
70 virtual std::string
const&
106 virtual std::string
const&
Debian source builder components.
Definition: ctty.cc:31
chroot::error error
Exception type.
Definition: file.h:45
Chroot storage.
Definition: storage.h:39
facet::ptr clone() const
Copy the chroot facet.
Definition: file.cc:108
virtual void setup_env(environment &env) const
Set environment.
Definition: file.cc:167
std::shared_ptr< file > ptr
A shared_ptr to a chroot facet object.
Definition: file.h:48
std::shared_ptr< const file > const_ptr
A shared_ptr to a const chroot facet object.
Definition: file.h:51
virtual void set_keyfile(const keyfile &keyfile)
Set the chroot properties from a keyfile.
Definition: file.cc:253
Container of environment variables.
Definition: environment.h:38
void set_file_repack(bool repack)
Set the file repack status.
Definition: file.cc:150
std::string location
Location inside the mount location root.
Definition: file.h:171
virtual session_flags get_session_flags() const
Get the session flags of the chroot.
Definition: file.cc:206
Common chroot data.
Definition: chroot.h:50
Advisory locking.
Definition: lock.h:38
static ptr create()
Create a chroot facet.
Definition: file.cc:102
virtual void get_details(format_detail &detail) const
Get detailed information about the chroot for output.
Definition: file.cc:217
std::string filename
The file to use.
Definition: file.h:169
session_flags
Chroot session properties.
Definition: facet.h:54
virtual void set_location(const std::string &location)
Set the location.
Definition: file.cc:135
Base class for all facets.
Definition: facet.h:50
virtual void get_keyfile(keyfile &keyfile) const
Copy the chroot properties into a keyfile.
Definition: file.cc:236
std::vector< std::string > string_list
A string vector.
Definition: types.h:38
Custom error.
Definition: custom-error.h:31
void set_filename(const std::string &filename)
Set the filename used by the chroot.
Definition: file.cc:120
bool repack
Should the chroot be repacked?
Definition: file.h:173
Common chroot data.
Definition: source-setup.h:41
virtual void get_used_keys(string_list &used_keys) const
Get a list of the keys used during keyfile parsing.
Definition: file.cc:228
std::string const & get_filename() const
Get the filename used by the chroot.
Definition: file.cc:114
Configuration file parser.
Definition: keyfile.h:46
std::string get_path() const
Get the path to the chroot.
Definition: file.cc:156
void set_chroot(chroot &chroot, bool copy)
Set containing chroot.
Definition: file.cc:83
A chroot stored in a file archive (tar with optional compression).
Definition: file.h:39
std::shared_ptr< facet > ptr
A shared_ptr to a chroot facet object.
Definition: facet.h:63
virtual void chroot_source_setup(const chroot &parent)
Set up a newly-cloned source chroot.
Definition: file.cc:274
virtual std::string const & get_location() const
Get the location.
Definition: file.cc:129
bool get_file_repack() const
Get the repack status.
Definition: file.cc:144
virtual std::string const & get_name() const
Get the name of the chroot facet.
Definition: file.cc:96
setup_type
Type of setup to perform.
Definition: chroot.h:54
file()
The constructor.
Definition: file.cc:59
virtual ~file()
The destructor.
Definition: file.cc:78