#include <UpgradeStatistics.h>
Public Member Functions | |
| UpgradeStatistics () | |
| virtual | ~UpgradeStatistics () |
| unsigned | totalToInstall () const |
| total number of packages that will be installed | |
| unsigned | totalToDelete () const |
| total number of packages that will be finally deleted (does not count the replaced packages) | |
| unsigned | totalToKeep () const |
| total number of packages that remain untouched | |
Public Attributes | |
| unsigned | pre_todel |
| initial status: packages already tagged to delete | |
| unsigned | pre_nocand |
| initial status: packages without candidate (foreign, replaced or dropped) | |
| unsigned | pre_avcand |
| initial status: packages with candidate (available for update) | |
| unsigned | chk_installed_total |
| update checks: total number of packages checked (should be number of installed packages) | |
| unsigned | chk_already_todel |
| update checks: packages already tagged to delete (should be pre_todel) | |
| unsigned | chk_is_taboo |
| update checks: packages skipped due to taboo (foreign) | |
| unsigned | chk_already_toins |
| update checks: with candidate: packages already tagged to install | |
| unsigned | chk_to_update |
| update checks: with candidate: packages updated to new version | |
| unsigned | chk_to_downgrade |
| update checks: with candidate: packages downgraded | |
| unsigned | chk_to_keep_downgrade |
| update checks: with candidate: packages untouched (foreign package downgrade) | |
| unsigned | chk_to_keep_installed |
| update checks: with candidate: packages untouched (uptodate) | |
| unsigned | chk_keep_foreign |
| update checks: without candidate: installed package has not vendor SuSE | |
| unsigned | chk_dropped |
| update checks: without candidate: packages dropped (or SuSE internal) | |
| unsigned | chk_replaced |
| update checks: without candidate: packages replaced | |
| unsigned | chk_add_split |
| update checks: without candidate: packages added by splitprovides | |
| unsigned | chk_replaced_guessed |
| update checks: without candidate: package replaced (but not uniqe, thus guessed) | |
Private Member Functions | |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const UpgradeStatistics &obj) |
Definition at line 91 of file UpgradeStatistics.h.
| zypp::UpgradeStatistics::UpgradeStatistics | ( | ) | [inline] |
Definition at line 199 of file UpgradeStatistics.h.
References chk_add_split, chk_already_todel, chk_already_toins, chk_dropped, chk_installed_total, chk_is_taboo, chk_keep_foreign, chk_replaced, chk_replaced_guessed, chk_to_downgrade, chk_to_keep_downgrade, chk_to_keep_installed, chk_to_update, pre_avcand, pre_nocand, and pre_todel.
| zypp::UpgradeStatistics::~UpgradeStatistics | ( | ) | [virtual] |
Definition at line 46 of file UpgradeStatistics.cc.
| std::ostream & zypp::UpgradeStatistics::dumpOn | ( | std::ostream & | str | ) | const [private, virtual] |
Definition at line 58 of file UpgradeStatistics.cc.
References chk_add_split, chk_already_todel, chk_already_toins, chk_dropped, chk_installed_total, chk_is_taboo, chk_keep_foreign, chk_replaced, chk_replaced_guessed, chk_to_downgrade, chk_to_keep_downgrade, chk_to_keep_installed, chk_to_update, zypp::UpgradeOptions::delete_unmaintained, pre_avcand, pre_nocand, pre_todel, totalToDelete(), totalToInstall(), and totalToKeep().
| unsigned zypp::UpgradeStatistics::totalToInstall | ( | ) | const [inline] |
total number of packages that will be installed
Definition at line 226 of file UpgradeStatistics.h.
References chk_add_split, chk_already_toins, chk_replaced, chk_replaced_guessed, chk_to_downgrade, and chk_to_update.
Referenced by dumpOn().
| unsigned zypp::UpgradeStatistics::totalToDelete | ( | ) | const [inline] |
total number of packages that will be finally deleted (does not count the replaced packages)
Definition at line 237 of file UpgradeStatistics.h.
References chk_already_todel, chk_dropped, and zypp::UpgradeOptions::delete_unmaintained.
Referenced by dumpOn().
| unsigned zypp::UpgradeStatistics::totalToKeep | ( | ) | const [inline] |
total number of packages that remain untouched
Definition at line 248 of file UpgradeStatistics.h.
References chk_dropped, chk_is_taboo, chk_keep_foreign, chk_to_keep_downgrade, chk_to_keep_installed, and zypp::UpgradeOptions::delete_unmaintained.
Referenced by dumpOn().
| std::ostream& operator<< | ( | std::ostream & | str, | |
| const UpgradeStatistics & | obj | |||
| ) | [friend] |
Definition at line 94 of file UpgradeStatistics.h.
| unsigned zypp::UpgradeStatistics::pre_todel |
initial status: packages already tagged to delete
Definition at line 106 of file UpgradeStatistics.h.
Referenced by dumpOn(), and UpgradeStatistics().
| unsigned zypp::UpgradeStatistics::pre_nocand |
initial status: packages without candidate (foreign, replaced or dropped)
Definition at line 110 of file UpgradeStatistics.h.
Referenced by dumpOn(), and UpgradeStatistics().
| unsigned zypp::UpgradeStatistics::pre_avcand |
initial status: packages with candidate (available for update)
Definition at line 114 of file UpgradeStatistics.h.
Referenced by dumpOn(), and UpgradeStatistics().
update checks: total number of packages checked (should be number of installed packages)
Definition at line 120 of file UpgradeStatistics.h.
Referenced by dumpOn(), and UpgradeStatistics().
update checks: packages already tagged to delete (should be pre_todel)
Definition at line 125 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToDelete(), and UpgradeStatistics().
update checks: packages skipped due to taboo (foreign)
Definition at line 130 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToKeep(), and UpgradeStatistics().
update checks: with candidate: packages already tagged to install
Definition at line 135 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToInstall(), and UpgradeStatistics().
update checks: with candidate: packages updated to new version
Definition at line 140 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToInstall(), and UpgradeStatistics().
update checks: with candidate: packages downgraded
Installed and candidate package have vendor SuSE and candidates buildtime is newer.
Definition at line 148 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToInstall(), and UpgradeStatistics().
update checks: with candidate: packages untouched (foreign package downgrade)
Definition at line 153 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToKeep(), and UpgradeStatistics().
update checks: with candidate: packages untouched (uptodate)
Definition at line 158 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToKeep(), and UpgradeStatistics().
update checks: without candidate: installed package has not vendor SuSE
Remains untouched.
Definition at line 165 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToKeep(), and UpgradeStatistics().
| unsigned zypp::UpgradeStatistics::chk_dropped |
update checks: without candidate: packages dropped (or SuSE internal)
There's no available candidate providing it.
Definition at line 172 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToDelete(), totalToKeep(), and UpgradeStatistics().
update checks: without candidate: packages replaced
There's exactly one available candidate providing it.
Definition at line 179 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToInstall(), and UpgradeStatistics().
update checks: without candidate: packages added by splitprovides
Only packages not selected by one of the above checks are counted.
Definition at line 186 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToInstall(), and UpgradeStatistics().
update checks: without candidate: package replaced (but not uniqe, thus guessed)
There are multiple available candidates providing it. If at the end at least one out of these candidates was set to install by one of the above checks, it's ok. Otherwise we have to guess one.
Definition at line 195 of file UpgradeStatistics.h.
Referenced by dumpOn(), totalToInstall(), and UpgradeStatistics().
1.5.3