#include <TargetImpl.h>
Inheritance diagram for zypp::target::TargetImpl:

Public Types | |
| typedef std::list< PoolItem_Ref > | PoolItemList |
| list of pool items | |
| typedef std::set< PoolItem_Ref > | PoolItemSet |
| set of pool items | |
Public Member Functions | |
| void | getResolvablesToInsDel (const ResPool pool_r, PoolItemList &dellist_r, PoolItemList &instlist_r, PoolItemList &srclist_r) const |
| Sort according to prereqs and media numbers. | |
| TargetImpl (const Pathname &root_r="/") | |
| Ctor. | |
| virtual | ~TargetImpl () |
| Dtor. | |
| const ResStore & | resolvables () |
| All resolvables in the target. | |
| ResStore::resfilter_const_iterator | byKindBegin (const ResObject::Kind &kind_r) const |
| load resolvables of certain kind in the internal store and return a iterator successive calls will be faster as resolvables are cached- | |
| ResStore::resfilter_const_iterator | byKindEnd (const ResObject::Kind &kind_r) const |
| Pathname | root () const |
| The root set for this target. | |
| ZYppCommitResult | commit (ResPool pool_r, const ZYppCommitPolicy &policy_r) |
| Commit changes in the pool. | |
| ZYPP_DEPRECATED int | commit (ResPool pool_r, unsigned int medianr, PoolItemList &errors_r, PoolItemList &remaining_r, PoolItemList &srcremaining_r, bool dry_run=false) |
| bool | isStorageEnabled () const |
| enables the storage target | |
| void | enableStorage (const Pathname &root_r) |
| PoolItemList | commit (const PoolItemList &items_r, const ZYppCommitPolicy &policy_r, const ResPool &pool_r) |
| Commit ordered changes. | |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
| Overload to realize stream output. | |
| rpm::RpmDb & | rpm () |
| The RPM database. | |
| bool | providesFile (const std::string &path_str, const std::string &name_str) const |
| If the package is installed and provides the file Needed to evaluate split provides during Resolver::Upgrade(). | |
| ResObject::constPtr | whoOwnsFile (const std::string &path_str) const |
| Return the resolvable which provides path_str (rpm -qf) return NULL if no resolvable provides this file. | |
| bool | setInstallationLogfile (const Pathname &path_r) |
| Set the log file for target. | |
| Date | timestamp () const |
| return the last modification date of the target | |
| void | reset () |
| reload the target in future calls if needed. | |
Static Public Member Functions | |
| static TargetImpl_Ptr | nullimpl () |
| Null implementation. | |
Protected Member Functions | |
| void | loadKindResolvables (const Resolvable::Kind kind) |
Protected Attributes | |
| ResStore | _store |
| All resolvables provided by the target. | |
| Pathname | _root |
| Path to the target. | |
| rpm::RpmDb | _rpm |
| RPM database. | |
| zypp::storage::PersistentStorage | _storage |
| bool | _storage_enabled |
| std::map< const Resolvable::Kind, DefaultFalseBool > | _resstore_loaded |
Static Private Attributes | |
| static TargetImpl_Ptr | _nullimpl |
| Null implementation. | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const TargetImpl &obj) |
Constructed by TargetFactory. Public access via Target interface.
Definition at line 52 of file TargetImpl.h.
|
|
list of pool items
Definition at line 58 of file TargetImpl.h. |
|
|
set of pool items
Definition at line 61 of file TargetImpl.h. |
|
|
Ctor.
Definition at line 262 of file TargetImpl.cc. References _root, _rpm, zypp::target::rpm::RpmDb::initDatabase(), and MIL. |
|
|
Dtor.
Definition at line 274 of file TargetImpl.cc. References _rpm, zypp::target::rpm::RpmDb::closeDatabase(), and MIL. |
|
||||||||||||||||||||
|
Sort according to prereqs and media numbers.
Definition at line 760 of file TargetImpl.cc. References zypp::pool::GetResolvablesToInsDel::_toDelete, zypp::pool::GetResolvablesToInsDel::_toInstall, zypp::pool::GetResolvablesToInsDel::_toSrcinstall, and MIL. |
|
|
Null implementation.
Definition at line 250 of file TargetImpl.cc. References _nullimpl. Referenced by zypp::Target::nullimpl(). |
|
|
All resolvables in the target.
Definition at line 351 of file TargetImpl.cc. References _store, and loadKindResolvables(). |
|
|
load resolvables of certain kind in the internal store and return a iterator successive calls will be faster as resolvables are cached-
Definition at line 335 of file TargetImpl.cc. References _store, zypp::ResStore::begin(), zypp::ResStore::end(), and loadKindResolvables(). |
|
|
Definition at line 343 of file TargetImpl.cc. References _store, zypp::ResStore::end(), and loadKindResolvables(). |
|
|
The root set for this target.
Definition at line 292 of file TargetImpl.cc. References _root. Referenced by commit(). |
|
||||||||||||
|
Commit changes in the pool.
Definition at line 374 of file TargetImpl.cc. References zypp::ZYppCommitPolicy::allMedia(), MIL, zypp::pool::GetResolvablesToInsDel::ORDER_BY_MEDIANR, zypp::pool::GetResolvablesToInsDel::ORDER_BY_SOURCE, and zypp::ZYppCommitPolicy::restrictToMedia(). Referenced by commit(). |
|
||||||||||||||||||||||||||||
|
Definition at line 100 of file TargetImpl.h. References zypp::ZYppCommitResult::_errors, zypp::ZYppCommitResult::_remaining, zypp::ZYppCommitResult::_result, zypp::ZYppCommitResult::_srcremaining, commit(), and zypp::ZYppCommitPolicy::restrictToMedia(). |
|
|
enables the storage target
Definition at line 280 of file TargetImpl.cc. References _storage_enabled. Referenced by timestamp(). |
|
|
Definition at line 286 of file TargetImpl.cc. References _storage, _storage_enabled, and zypp::storage::PersistentStorage::init(). |
|
||||||||||||||||
|
Commit ordered changes.
Definition at line 465 of file TargetImpl.cc. References zypp::ZYppCommitPolicy::dryRun(), zypp::target::rpm::RpmDb::installPackage(), MIL, root(), rpm(), zypp::target::rpm::InstallResolvableReport::RPM, zypp::target::rpm::InstallResolvableReport::RPM_NODEPS, zypp::target::rpm::RpmDb::RPMINST_NODEPS, zypp::target::rpm::RpmDb::RPMINST_NOSIGNATURE, zypp::target::rpm::RpmDb::RPMINST_NOUPGRADE, zypp::target::rpm::RpmDb::RPMINST_TEST, zypp::ZYppCommitPolicy::rpmNoSignature(), zypp::target::sourceProvidePackage(), WAR, and ZYPP_CAUGHT. |
|
|
Overload to realize stream output.
Reimplemented from zypp::base::ReferenceCounted. Definition at line 126 of file TargetImpl.h. |
|
|
The RPM database.
Definition at line 724 of file TargetImpl.cc. References _rpm. Referenced by commit(). |
|
||||||||||||
|
If the package is installed and provides the file Needed to evaluate split provides during Resolver::Upgrade().
Definition at line 729 of file TargetImpl.cc. References _rpm, and zypp::target::rpm::RpmDb::hasFile(). |
|
|
Return the resolvable which provides path_str (rpm -qf) return NULL if no resolvable provides this file.
Definition at line 736 of file TargetImpl.cc. References _rpm, _store, zypp::ResStore::begin(), zypp::ResStore::end(), name, and zypp::target::rpm::RpmDb::whoOwnsFile(). |
|
|
Set the log file for target.
Definition at line 753 of file TargetImpl.cc. References zypp::target::CommitLog::setFname(). |
|
|
return the last modification date of the target
Definition at line 772 of file TargetImpl.cc. References _rpm, isStorageEnabled(), zypp::Date::now(), and zypp::target::rpm::RpmDb::timestamp(). |
|
|
reload the target in future calls if needed. note the loading can actually be delayed, but the next call to resolvables must reflect the status of the system. Definition at line 362 of file TargetImpl.cc. References _resstore_loaded, _store, and zypp::ResStore::clear(). |
|
|
Definition at line 297 of file TargetImpl.cc. References _resstore_loaded, _rpm, _store, zypp::target::rpm::RpmDb::getPackages(), and zypp::ResStore::insert(). Referenced by byKindBegin(), byKindEnd(), and resolvables(). |
|
||||||||||||
|
Stream output Definition at line 177 of file TargetImpl.h. |
|
|
All resolvables provided by the target.
Definition at line 160 of file TargetImpl.h. Referenced by byKindBegin(), byKindEnd(), loadKindResolvables(), reset(), resolvables(), and whoOwnsFile(). |
|
|
Path to the target.
Definition at line 162 of file TargetImpl.h. Referenced by root(), and TargetImpl(). |
|
|
RPM database.
Definition at line 164 of file TargetImpl.h. Referenced by loadKindResolvables(), providesFile(), rpm(), TargetImpl(), timestamp(), whoOwnsFile(), and ~TargetImpl(). |
|
|
Definition at line 166 of file TargetImpl.h. Referenced by enableStorage(). |
|
|
Definition at line 167 of file TargetImpl.h. Referenced by enableStorage(), and isStorageEnabled(). |
|
|
Definition at line 168 of file TargetImpl.h. Referenced by loadKindResolvables(), and reset(). |
|
|
Null implementation.
Definition at line 172 of file TargetImpl.h. Referenced by nullimpl(). |
1.4.6