49 static const size_type
npos=
static_cast<size_type
>(-1);
84 std::set<string> _sources_to_download;
87 std::set<string> _sources_to_build;
91 std::set<binary_control_table::key_type> _packages_written;
97 size_type _bytes_done;
100 size_type _bytes_total;
109 std::map<string,progress> _progress_table;
136 {
return _bytes_done; }
142 {
return _bytes_total; }
176 void update_progress();
The state in which the update operation failed.
Definition: update.h:68
state_type
An enumeration for describing the state of the update operation.
Definition: update.h:52
A class for updating the package database.
Definition: update.h:41
void log_to(log *use_log)
Set the log to add to.
Definition: update.cc:286
Definition: download.h:58
virtual ~update()
Destroy update operation.
Definition: update.cc:40
The namespace used to hold the package management library.
Definition: auto_dir.cc:23
unsigned long long size_type
A type for representing byte counts.
Definition: update.h:46
size_type bytes_done
The number of bytes downloaded.
Definition: update.h:183
The state in which local packages are incorporated into the available list.
Definition: update.h:63
The state in which the package indexes are being downloaded.
Definition: update.h:57
size_type bytes_prev
The total number of bytes when most recently downloaded, or npos if no previous total is available...
Definition: update.h:188
A mixin class to represent a cooperative thread.
Definition: thread.h:23
Class to log actions that occur in LibPkg.
Definition: log.h:226
state_type state() const
Get current state.
Definition: update.h:129
A class for representing the collection of package database tables.
Definition: pkgbase.h:35
The state in which the sources list is being read.
Definition: update.h:55
void download_options(const download::options &opts)
Set extra options used for the downloading of the package lists.
Definition: update.cc:291
A structure for monitoring the progress of one source.
Definition: update.h:180
size_type bytes_done() const
Get number of bytes downloaded.
Definition: update.h:135
A class for downloading a file from a URL.
Definition: download.h:37
size_type bytes_total() const
Get total number of bytes to download.
Definition: update.h:141
string message() const
Get error message.
Definition: update.h:149
The state in which remote sources are incorporated into the available list.
Definition: update.h:60
static const size_type npos
A null value for use in place of a byte count.
Definition: update.h:49
size_type bytes_total
The total number of bytes to download, or npos if not known.
Definition: update.h:185
void poll()
Poll this thread.
Definition: update.cc:45
The state in which the update operation has been successfully completed.
Definition: update.h:66
update(pkgbase &pb)
Construct update operation.
Definition: update.cc:29