76 pkgbase(
const string& pathname,
const string& dpathname,
77 const string& cpathname);
100 {
return _prevstat; }
145 const string& pkgvrsn,
146 const string& pkgenvid);
238 const pkg::control* resolve(
const std::vector<dependency>& deps,
239 bool allow_new=
true);
252 bool allow_new=
true);
259 void ensure_removed(
const string& pkgname);
268 void ensure_installed(
const string& pkgname,
const string& pkgvrsn,
const string &pkgenv);
279 public std::runtime_error
An exception class for reporting cache errors.
Definition: pkgbase.h:278
void verify_cached_file(const binary_control &ctrl)
Verify file in cache.
Definition: pkgbase.cc:158
status_table & prevstat()
Get previous status table.
Definition: pkgbase.h:99
string available_pathname()
Get pathname for available list file.
Definition: pkgbase.cc:128
string info_pathname(const string &pkgname)
Get pathname for info directory of package.
Definition: pkgbase.cc:82
The namespace used to hold the package management library.
Definition: auto_dir.cc:12
A class that filters the binary control table to create a list of the packages available in the curre...
Definition: env_packages_table.h:23
binary_control_table & control()
Get binary control table.
Definition: pkgbase.h:105
A class to represent a package dependency.
Definition: dependency.h:24
string sysvars_pathname()
Get pathname for sysvars directory.
Definition: pkgbase.cc:133
~pkgbase()
Destroy pkgbase object.
Definition: pkgbase.cc:55
bool fix_dependencies(const std::set< string > &seed)
Fix dependencies.
Definition: pkgbase.cc:199
string sprites_pathname()
Get pathname for sprites directory.
Definition: pkgbase.cc:138
string setvars_pathname()
Get pathname for setvars file.
Definition: pkgbase.cc:143
status_table & selstat()
Get selected status table.
Definition: pkgbase.h:91
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:337
string list_pathname(const string &url)
Get pathname for index file from given source.
Definition: pkgbase.cc:87
env_packages_table & env_packages()
Get environment packages table which contains the package names of packages suitable for the current ...
Definition: pkgbase.cc:60
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:148
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:24
status_table & curstat()
Get current status table.
Definition: pkgbase.h:85
Class to help manage the single env_checker instance.
Definition: env_checker.h:130
A class for mapping package name to package status.
Definition: status_table.h:20
source_table & sources()
Get source table.
Definition: pkgbase.h:111
string cache_pathname(const string &pkgname, const string &pkgvrsn, const string &pkgenvid)
Get pathname for package in cache.
Definition: pkgbase.cc:71
path_table & paths()
Get path table.
Definition: pkgbase.h:124
A class to represent the content of a RiscPkg binary control file.
Definition: binary_control.h:24
pkgbase(const string &pathname, const string &dpathname, const string &cpathname)
Create pkgbase object.
Definition: pkgbase.cc:24
string component_update_pathname()
Get pathname for component update file.
Definition: pkgbase.cc:153
A class for mapping source paths to destination paths.
Definition: path_table.h:24