#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. | |
| 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. | |
Static Public Member Functions | |
| static TargetImpl_Ptr | nullimpl () |
| Null implementation. | |
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 |
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 51 of file TargetImpl.h.
|
|
list of pool items
Definition at line 57 of file TargetImpl.h. |
|
|
set of pool items
Definition at line 60 of file TargetImpl.h. |
|
|
Ctor.
Definition at line 86 of file TargetImpl.cc. References _root, _rpm, _storage_enabled, zypp::target::rpm::RpmDb::initDatabase(), and MIL. |
|
|
Dtor.
Definition at line 99 of file TargetImpl.cc. References _rpm, zypp::target::rpm::RpmDb::closeDatabase(), and MIL. |
|
||||||||||||||||||||
|
Sort according to prereqs and media numbers.
Definition at line 552 of file TargetImpl.cc. References zypp::pool::GetResolvablesToInsDel::_toDelete, zypp::pool::GetResolvablesToInsDel::_toInstall, zypp::pool::GetResolvablesToInsDel::_toSrcinstall, and MIL. |
|
|
Null implementation.
Definition at line 73 of file TargetImpl.cc. References _nullimpl. Referenced by zypp::Target::nullimpl(). |
|
|
All resolvables in the target.
Definition at line 122 of file TargetImpl.cc. References _rpm, _store, zypp::ResStore::clear(), zypp::target::rpm::RpmDb::getPackages(), and zypp::ResStore::insert(). |
|
|
The root set for this target.
Definition at line 117 of file TargetImpl.cc. References _root. |
|
||||||||||||
|
Commit changes in the pool.
Definition at line 155 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 91 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 105 of file TargetImpl.cc. References _storage_enabled. |
|
|
Definition at line 111 of file TargetImpl.cc. References _storage, _storage_enabled, and zypp::storage::PersistentStorage::init(). |
|
||||||||||||||||
|
Commit ordered changes.
Definition at line 244 of file TargetImpl.cc. References _rpm, zypp::ZYppCommitPolicy::dryRun(), zypp::target::rpm::RpmDb::installPackage(), MIL, zypp::source::PackageProvider::providePackage(), zypp::source::PackageProviderPolicy::queryInstalledCB(), 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(), WAR, and ZYPP_CAUGHT. |
|
|
Overload to realize stream output.
Reimplemented from zypp::base::ReferenceCounted. Definition at line 117 of file TargetImpl.h. |
|
|
The RPM database.
Definition at line 523 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 526 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 531 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 546 of file TargetImpl.cc. References zypp::target::rpm::RpmDb::setInstallationLogfile(). |
|
||||||||||||
|
Stream output Definition at line 152 of file TargetImpl.h. |
|
|
All resolvables provided by the target.
Definition at line 136 of file TargetImpl.h. Referenced by resolvables(), and whoOwnsFile(). |
|
|
Path to the target.
Definition at line 138 of file TargetImpl.h. Referenced by root(), and TargetImpl(). |
|
|
RPM database.
Definition at line 140 of file TargetImpl.h. Referenced by commit(), providesFile(), resolvables(), rpm(), TargetImpl(), whoOwnsFile(), and ~TargetImpl(). |
|
|
Definition at line 142 of file TargetImpl.h. Referenced by enableStorage(). |
|
|
Definition at line 143 of file TargetImpl.h. Referenced by enableStorage(), isStorageEnabled(), and TargetImpl(). |
|
|
Null implementation.
Definition at line 147 of file TargetImpl.h. Referenced by nullimpl(). |
1.4.6