#include <PMPackageManager.h>
Inheritance diagram for PMPackageManager:
Public Types | |
typedef PkgDuMaster::MountPoint | MountPoint |
Public Member Functions | |
void | getPackagesToInsDel (std::list< PMPackagePtr > &dellist_r, std::list< PMPackagePtr > &instlist_r, std::list< PMPackagePtr > &srclist_r) |
void | doUpdate (PMUpdateStats &opt_stats_r) |
unsigned | updateSize () const |
bool | updateEmpty () const |
PMSelectableVec::const_iterator | updateBegin () const |
PMSelectableVec::const_iterator | updateEnd () const |
YRpmGroupsTree * | rpmGroupsTree () const |
YStringTreeItem * | addRpmGroup (const std::string &rpmGroup) |
std::string | rpmGroup (const YStringTreeItem *node) |
std::string | translatedRpmGroup (const YStringTreeItem *node) |
void | setMountPoints (const std::set< MountPoint > &mountpoints_r) |
const PkgDuMaster & | getDu () |
const PkgDuMaster & | updateDu () |
PkgDuMaster & | countDuInstalled (PkgDuMaster &dudata) const |
PkgDuMaster & | countDuCandidates (PkgDuMaster &dudata) const |
PkgDuMaster & | countDuSelected (PkgDuMaster &dudata) const |
Private Member Functions | |
PMPackageManager & | operator= (const PMPackageManager &) |
PMPackageManager (const PMPackageManager &) | |
PMPackageManager () | |
virtual | ~PMPackageManager () |
virtual PMObjectPtr | assertObjectType (const PMObjectPtr &object_r) const |
virtual void | prePSI () |
virtual void | postPSI () |
Private Attributes | |
PMManager::PMSelectableVec | _update_items |
YRpmGroupsTree * | _rpmGroupsTree |
PkgDuMaster | _du_master |
Friends | |
std::ostream & | operator<< (std::ostream &str, const PMPackageManager &obj) |
|
|
|
|
|
|
|
|
|
Insert an RPM group into this tree if not already present. Splits the RPM group string ("abc/def/ghi") and creates tree items for each level as required. Returns the tree entry for this RPM group. |
|
Make sure the passed PMObjectPtr actually references a PMPackage. If not, report error and return NULL. Implements PMManager. |
|
Debug: Sum up diskusage of all candidate packages to dudata. |
|
Debug: Sum up diskusage of all installed packages to dudata. |
|
Debug: Sum up diskusage of all candidate packages selected for install to dudata. |
|
go through all installed packages and update them. Any options for update are passed down via opt_stats_r. Remaining fields (statistics and returned lists) will be filled by doUpdate. |
|
Returns PkgDuMaster, that contains not just the mountpoints set, but overall disk usage info (not spillted to partitions). This does not update the statistics! It's the info of any previous updateDu(). Note: If the current mountpoint set is empty, we try to get one from InstTarget. |
|
Fill in the packages set to be deleted and to be installed. instlist_r is sorted according to PreReqs. srclist_r is the unordered (!) list of all source packages to install |
|
|
|
Post poolSetInstalled hook Reimplemented from PMManager. |
|
Pre poolSetInstalled hook Reimplemented from PMManager. |
|
Returns the complete (untranslated) RPM group tag string for 'node'. |
|
Retrieve the internal RPM groups tree (for cloning tree items in the UI etc.). |
|
Provide 'df' info for disk usage calculation |
|
Returns the complete translated RPM group tag string for 'node'. |
|
Iterator for problematic update items within this Manager. |
|
Calculate disk usage based on previously provided 'df' info. Returns PkgDuMaster, that contains not just the mountpoints set, but overall disk usage info (not spillted to partitions). Note: If the current mountpoint set is empty, we try to get one from InstTarget. |
|
True if update had problems |
|
Iterator for problematic update items within this Manager. |
|
The number of problematic update packges. |
|
|
|
|
|
|
|
problematic update items, filled by doUpdate, used by UI |