17 #ifndef LIBPKG_PKGBASE 18 #define LIBPKG_PKGBASE 87 pkgbase(
const string& pathname,
const string& dpathname,
88 const string& cpathname);
111 {
return _prevstat; }
156 const string& pkgvrsn,
157 const string& pkgenvid);
249 const pkg::control* resolve(
const std::vector<dependency>& deps,
250 bool allow_new=
true);
263 bool allow_new=
true);
270 void ensure_removed(
const string& pkgname);
279 void ensure_installed(
const string& pkgname,
const string& pkgvrsn,
const string &pkgenv);
290 public std::runtime_error
An exception class for reporting cache errors.
Definition: pkgbase.h:289
void verify_cached_file(const binary_control &ctrl)
Verify file in cache.
Definition: pkgbase.cc:169
status_table & prevstat()
Get previous status table.
Definition: pkgbase.h:110
string available_pathname()
Get pathname for available list file.
Definition: pkgbase.cc:139
string info_pathname(const string &pkgname)
Get pathname for info directory of package.
Definition: pkgbase.cc:93
The namespace used to hold the package management library.
Definition: auto_dir.cc:23
A class that filters the binary control table to create a list of the packages available in the curre...
Definition: env_packages_table.h:34
binary_control_table & control()
Get binary control table.
Definition: pkgbase.h:116
A class to represent a package dependency.
Definition: dependency.h:35
string sysvars_pathname()
Get pathname for sysvars directory.
Definition: pkgbase.cc:144
~pkgbase()
Destroy pkgbase object.
Definition: pkgbase.cc:66
bool fix_dependencies(const std::set< string > &seed)
Fix dependencies.
Definition: pkgbase.cc:210
string sprites_pathname()
Get pathname for sprites directory.
Definition: pkgbase.cc:149
string setvars_pathname()
Get pathname for setvars file.
Definition: pkgbase.cc:154
status_table & selstat()
Get selected status table.
Definition: pkgbase.h:102
A class to represent the content of a RiscPkg control file.
Definition: control.h:35
void remove_auto()
Remove redundant auto-installed packages.
Definition: pkgbase.cc:348
string list_pathname(const string &url)
Get pathname for index file from given source.
Definition: pkgbase.cc:98
env_packages_table & env_packages()
Get environment packages table which contains the package names of packages suitable for the current ...
Definition: pkgbase.cc:71
A class for holding a list of source URLs.
Definition: source_table.h:37
string bootsprites_pathname()
Get pathname for sprites file.
Definition: pkgbase.cc:159
A class for mapping package name and version to binary control record.
Definition: binary_control_table.h:32
A class for representing the collection of package database tables.
Definition: pkgbase.h:35
status_table & curstat()
Get current status table.
Definition: pkgbase.h:96
Class to help manage the single env_checker instance.
Definition: env_checker.h:142
A class for mapping package name to package status.
Definition: status_table.h:31
source_table & sources()
Get source table.
Definition: pkgbase.h:122
string cache_pathname(const string &pkgname, const string &pkgvrsn, const string &pkgenvid)
Get pathname for package in cache.
Definition: pkgbase.cc:82
path_table & paths()
Get path table.
Definition: pkgbase.h:135
A class to represent the content of a RiscPkg binary control file.
Definition: binary_control.h:35
pkgbase(const string &pathname, const string &dpathname, const string &cpathname)
Create pkgbase object.
Definition: pkgbase.cc:35
string component_update_pathname()
Get pathname for component update file.
Definition: pkgbase.cc:164
A class for mapping source paths to destination paths.
Definition: path_table.h:34