#include <InstTarget.h>
Inheritance diagram for InstTarget:

Public Types | |
| typedef InstTargetError | Error |
| typedef enum RpmDb::RpmInstFlag | InstFlag |
| typedef enum RpmDb::checkPackageResult | checkPackageResult |
Public Member Functions | |
| const Pathname & | rootdir () const |
| bool | initialized () const |
| bool | needsUpdate () const |
| PMError | bringIntoCleanState () |
| virtual const std::list< PMPackagePtr > & | getPackages () const |
| virtual const std::vector< PMYouPatchPtr > & | getPatches () const |
| bool | setInstallationLogfile (const std::string &logfile) |
| void | setBackupPath (const Pathname &path) |
| void | createPackageBackups (bool yes) |
| Pathname | getBackupPath (void) |
| void | setPkgInstFlags (unsigned flags) |
| unsigned | getPkgInstFlags () const |
| void | setPkgRemoveFlags (unsigned flags) |
| unsigned | getPkgRemoveFlags () const |
| PMError | installPackage (const Pathname &filename, unsigned flags=0) |
| PMError | installPackages (const std::list< Pathname > &filenames, unsigned flags=0) |
| PMError | removePackage (const std::string &name_r, unsigned flags=0) |
| PMError | removePackage (constPMPackagePtr package, unsigned flags=0) |
| PMError | removePackages (const std::list< std::string > &names_r, unsigned flags=0) |
| PMError | removePackages (const std::list< PMPackagePtr > &packages, unsigned flags=0) |
| PMError | importPubkey (const Pathname &pubkey_r) |
| PMError | importPubkey (const Pathname &keyring_r, const std::string &keyname_r) |
| std::set< PkgEdition > | pubkeys () const |
| bool | hasFile (const std::string &file_r) const |
| bool | hasProvides (const std::string &tag_r) const |
| bool | hasRequiredBy (const std::string &tag_r) const |
| bool | hasConflicts (const std::string &tag_r) const |
| bool | hasPackage (const PkgName &name_r) const |
| void | traceFileRel (const PkgRelation &rel_r) |
| bool | isProvided (const std::string &tag) |
| bool | isInstalled (const std::string &name) |
| PMError | installPatch (const Pathname &filename) |
| PMError | executeScript (const Pathname &scriptname) |
| bool | mayAccessProducts () const |
| const std::list< constInstSrcDescrPtr > & | getProducts () const |
| bool | isInstalledProduct (const constInstSrcDescrPtr &isd_r) const |
| PMError | installProduct (const constInstSrcDescrPtr &isd_r) |
| PMError | removeProduct (const constInstSrcDescrPtr &isd_r) |
| bool | mayAccessSelections () const |
| virtual const std::list< PMSelectionPtr > & | getSelections () const |
| bool | isInstalledSelection (const Pathname &selfile_r) const |
| PMError | installSelection (const Pathname &selfile_r) |
| PMError | removeSelection (const Pathname &selfile_r) |
| std::set< PkgDuMaster::MountPoint > | getMountPoints () const |
Static Public Member Functions | |
| static PkgArch | baseArch () |
Private Member Functions | |
| REP_BODY (InstTarget) | |
| InstTarget () | |
| ~InstTarget () | |
| PMError | init (const Pathname &rootpath) |
Private Attributes | |
| Pathname | _rootdir |
| RpmDbPtr | _rpmdb |
| InstTargetProdDBPtr | _proddb |
| InstTargetSelDBPtr | _seldb |
| unsigned | _rpminstflags |
| unsigned | _rpmremoveflags |
| std::vector< PMYouPatchPtr > | _patches |
| bool | _patchesInitialized |
Friends | |
| class | Y2PM |
|
|
Bits of possible package corruptions Has to be moved from RpmDB to here
|
|
|
Default error class |
|
|
Installation options like force, nodeps ... Has to be moved from RpmDB to here
|
|
|
|
|
|
|
|
|
Determine target system architecture. |
|
|
bring target into a clean state e.g. by calling rpm --rebuilddb |
|
|
whether to create package backups during install or removal
|
|
|
Execute script. |
|
|
get backup dir for rpm config files |
|
|
Fallback for Packagemanager in case no one initialized the 'df' info for disk usage calculation. Returns an empty set if
Taken into account are entries,
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
generate PMPackage objects for each Item on the source/target
Implements InstData. |
|
|
generate PMYouPatch objects for each patch on the source
Implements InstData. |
|
|
get current package installation parameters get 'rpm' parameters currently used for package installation |
|
|
get current package removal parameters get 'rpm' parameters currently used for package removal |
|
|
Return list of installed Products (reverse sorted by installation time). |
|
|
generate PMSelection objects for each selection on the source
Implements InstData. |
|
|
Return true if at least one package conflicts with a certain tag. |
|
|
Return true if at least one package owns a certain file. |
|
|
Return true if package is installed. |
|
|
Return true if at least one package provides a certain tag. |
|
|
Return true if at least one package requires a certain tag. |
|
||||||||||||
|
Import ascii armored public key keyname_r exported by keyring_r into RPM database |
|
|
Import ascii armored public key in file pubkey_r into RPM database |
|
|
Initialize target system. Takes necessary action to make installation, queries etc possible.
|
|
|
|
|
||||||||||||
|
install single Package to the target
|
|
||||||||||||
|
install multiple packages to the target
|
|
|
Install patch. This function does not install any packages. It just registers the patch as installed.
|
|
|
Install Product. That's nothing but copying the InstSrcDescr into the local ProductDB, and remove entries with the same product name but different version than isd_r. |
|
|
Install Selection. That's nothing but copying the Selection file into the local SelectionDB. |
|
|
Deprecated old style |
|
|
Return true if Product isd_r is installed. Actually if an InstSrcDescr with same product name and version is installed. |
|
|
Return true if Selection selfile_r is installed. Actually only checks whether a file named $(basename selfile_r) is installed. |
|
|
Deprecated old style |
|
|
Return true if products database is accessible. |
|
|
Return true if selection database is accessible. |
|
|
|
|
|
Return the editions of all installed public keys in RPM database. |
|
||||||||||||
|
|
|
||||||||||||
|
remove single package
|
|
||||||||||||
|
|
|
||||||||||||
|
remove multiple packages
|
|
|
Removes Product from ProductDB. I.e. an installed Product with the same product name and version as isd_r. |
|
|
Removes a file named $(basename selfile_r) from the SelectionDB. |
|
|
|
|
|
|
|
|
set backup dir for rpm config files
|
|
|
set log file for installation
|
|
|
set parameters to use on installation/update
|
|
|
set parameters to use on removal of packages
|
|
|
Hack to let InstTarget lookup required and conflicting file relations. |
|
|
|
|
|
|
|
|
|
|
|
Products database |
|
|
The name of the install root. |
|
|
Rpm database |
|
|
parameters to use on installation/update |
|
|
parameters to use on removal |
|
|
Selection database |
1.4.1