68 pkgbase(
const string& pathname,
const string& dpathname,
69 const string& cpathname);
129 const string& pkgvrsn);
219 const pkg::control* resolve(
const std::vector<dependency>& deps,
220 bool allow_new=
true);
233 bool allow_new=
true);
240 void ensure_removed(
const string& pkgname);
248 void ensure_installed(
const string& pkgname,
const string& pkgvrsn);
253 public std::runtime_error
An exception class for reporting cache errors.
Definition: pkgbase.h:252
void verify_cached_file(const binary_control &ctrl)
Verify file in cache.
Definition: pkgbase.cc:127
status_table & prevstat()
Get previous status table.
Definition: pkgbase.h:91
string available_pathname()
Get pathname for available list file.
Definition: pkgbase.cc:97
string info_pathname(const string &pkgname)
Get pathname for info directory of package.
Definition: pkgbase.cc:51
binary_control_table & control()
Get binary control table.
Definition: pkgbase.h:97
string cache_pathname(const string &pkgname, const string &pkgvrsn)
Get pathname for package in cache.
Definition: pkgbase.cc:42
cache_error(const char *message, const binary_control &ctrl)
Construct cache error.
Definition: pkgbase.cc:484
A class to represent a package dependency.
Definition: dependency.h:24
string sysvars_pathname()
Get pathname for sysvars directory.
Definition: pkgbase.cc:102
~pkgbase()
Destroy pkgbase object.
Definition: pkgbase.cc:39
bool fix_dependencies(const std::set< string > &seed)
Fix dependencies.
Definition: pkgbase.cc:168
string sprites_pathname()
Get pathname for sprites directory.
Definition: pkgbase.cc:107
string setvars_pathname()
Get pathname for setvars file.
Definition: pkgbase.cc:112
status_table & selstat()
Get selected status table.
Definition: pkgbase.h:83
A class to represent the content of a RiscPkg control file.
Definition: control.h:24
void remove_auto()
Remove redundant auto-installed packages.
Definition: pkgbase.cc:298
string list_pathname(const string &url)
Get pathname for index file from given source.
Definition: pkgbase.cc:56
A class for holding a list of source URLs.
Definition: source_table.h:26
string bootsprites_pathname()
Get pathname for sprites file.
Definition: pkgbase.cc:117
A class for mapping package name and version to binary control record.
Definition: binary_control_table.h:21
A class for representing the collection of package database tables.
Definition: pkgbase.h:22
status_table & curstat()
Get current status table.
Definition: pkgbase.h:77
A class for mapping package name to package status.
Definition: status_table.h:20
source_table & sources()
Get source table.
Definition: pkgbase.h:103
path_table & paths()
Get path table.
Definition: pkgbase.h:109
A class to represent the content of a RiscPkg binary control file.
Definition: binary_control.h:22
pkgbase(const string &pathname, const string &dpathname, const string &cpathname)
Create pkgbase object.
Definition: pkgbase.cc:23
string component_update_pathname()
Get pathname for component update file.
Definition: pkgbase.cc:122
A class for mapping source paths to destination paths.
Definition: path_table.h:24