43 static const size_type
npos=
static_cast<size_type
>(-1);
92 std::set<string> _packages_to_process;
95 std::set<string> _packages_to_download;
100 std::set<string> _packages_to_unpack;
105 std::set<string> _packages_to_configure;
110 std::set<string> _packages_to_purge;
113 std::set<string> _components_to_remove;
116 std::set<string> _files_to_boot;
118 std::set<string> _files_to_run;
120 std::set<string> _files_to_add_to_apps;
132 size_type _files_done;
135 size_type _files_total;
138 size_type _bytes_done;
141 size_type _bytes_total;
150 std::map<string,progress> _progress_table;
154 std::set<string> _files_that_conflict;
194 {
return _files_done; }
200 {
return _files_total; }
206 {
return _bytes_done; }
212 {
return _bytes_total; }
233 {
return _files_that_conflict; }
268 void update_download_progress();
276 void warning(
LogCode code,
const std::string &item,
const std::string &what);
std::string substate_text() const
Definition: commit.cc:785
The state in which post remove triggers are run.
Definition: commit.h:73
A class to manage the package triggers executed during the commiting of the packages.
Definition: triggers.h:38
The state in which the sprite pool is updated.
Definition: commit.h:63
Definition: download.h:58
size_type bytes_total() const
Get total number of bytes to process.
Definition: commit.h:211
The state in which packages are being purged.
Definition: commit.h:59
The namespace used to hold the package management library.
Definition: auto_dir.cc:23
size_type bytes_done() const
Get number of bytes processed.
Definition: commit.h:205
The state in which packages are being downloaded.
Definition: commit.h:53
log * warnings() const
Return warnings log.
Definition: commit.h:246
void use_trigger_run(trigger_run *tr)
Set the class to run triggers.
Definition: commit.cc:791
size_type files_total() const
Get total number of files to process.
Definition: commit.h:199
The state in which post install triggers are run.
Definition: commit.h:75
The state in which all operations have been successfully completed.
Definition: commit.h:80
void log_to(log *use_log)
Set the log to add to.
Definition: commit.cc:796
virtual void poll()
Poll this thread.
Definition: commit.cc:80
The state in which packages are being unpacked or removed.
Definition: commit.h:55
The state in which the RISC OS boot option files are updated.
Definition: commit.h:65
The state in which an error has occurred.
Definition: commit.h:82
The state in which files are added to the current apps virtual directory.
Definition: commit.h:71
A class for unpacking and removing sets of packages.
Definition: unpack.h:49
The state in which packages are being configured.
Definition: commit.h:57
The state in which the list of system variables is updated.
Definition: commit.h:61
unsigned long long size_type
A type for representing byte counts.
Definition: commit.h:40
class to represent a trigger action from a script
Definition: trigger.h:33
commit(pkgbase &pb, const std::set< string > &packages)
Construct commit operation.
Definition: commit.cc:40
The state in which packages are being considered for download.
Definition: commit.h:51
The state in which files added to the boot run files are run.
Definition: commit.h:69
A mixin class to represent a cooperative thread.
Definition: thread.h:23
log * detach_warnings()
Detach warnings log.
Definition: commit.h:253
size_type files_done() const
Get number of files processed.
Definition: commit.h:193
Class to log actions that occur in LibPkg.
Definition: log.h:226
string message() const
Get error message.
Definition: commit.h:219
state_type
Definition: commit.h:46
Interface to execute a trigger.
Definition: trigger.h:77
bool has_substate_text() const
Definition: commit.cc:772
A class for representing the collection of package database tables.
Definition: pkgbase.h:35
state_type state() const
Get current state of the commit operation.
Definition: commit.h:187
const std::set< string > & files_that_conflict() const
Get the set of destination pathnames that conflict with files already on the system.
Definition: commit.h:232
The state in which work files and variables for triggers are cleaned up.
Definition: commit.h:77
size_type bytes_done
The number of bytes downloaded.
Definition: commit.h:283
size_type bytes_total
The total number of bytes to download, or npos if not known.
Definition: commit.h:285
static const size_type npos
A null value for use in place of a byte count.
Definition: commit.h:43
A class for downloading a file from a URL.
Definition: download.h:37
A structure for monitoring the download progress of one source.
Definition: commit.h:280
size_type bytes_ctrl
The total number of bytes specified in the control record, or npos if no total was given...
Definition: commit.h:288
virtual ~commit()
Destroy commit operation.
Definition: commit.cc:67
bool clear_substate_text_changed()
Definition: commit.cc:777
void download_options(const download::options &options)
Set additional options for any downloads required.
Definition: commit.cc:74
A class for installing, removing and purging packages.
Definition: commit.h:35
LogCode
An enumeration of all the items that can be logged.
Definition: log.h:30
The state in which paths for components are set.
Definition: commit.h:49
The state in which files added to the boot look at and boot run files are booted. ...
Definition: commit.h:67