40 struct QueryInstalledEditionHelper
42 bool operator()(
const std::string & name_r,
const Edition & ed_r,
const Arch & arch_r )
const
44 rpm::librpmDb::db_const_iterator it;
45 for ( it.findByName( name_r ); *it; ++it )
47 if ( arch_r == it->tag_arch()
77 _impl->_packageProviderPolicy.queryInstalledCB( QueryInstalledEditionHelper() );
95 return pkgProvider.providePackage();
114 if ( getenv(
"ZYPP_COMMIT_NO_PACKAGE_CACHE") )
116 MIL <<
"$ZYPP_COMMIT_NO_PACKAGE_CACHE is set." << endl;
117 _pimpl.reset(
new Impl( packageProvider_r ) );
131 _pimpl->setCommitList( commitList_r );
135 {
return _pimpl->get( citem_r ); }
143 {
return str << *obj.
_pimpl; }
Candidate delta and patches for a package.
CommitPackageCache(const Pathname &rootDir_r, const PackageProvider &packageProvider_r=RepoProvidePackage())
Ctor.
std::list< Repository > _repos
function< ManagedFile(const PoolItem &pi, bool fromCache_r)> PackageProvider
Target::commit helper optimizing package provision.
repo::RepoMediaAccess _access
Policies and options for PackageProvider.
RW_pointer< Impl > _pimpl
Pointer to implementation.
ResObject::constPtr resolvable() const
Returns the ResObject::constPtr.
ManagedFile operator()(const PoolItem &pi, bool fromCache_r)
Provide package optionally fron cache only.
repository_iterator knownRepositoriesEnd() const
ManagedFile providePackageFromCache() const
Provide the package if it is cached.
~CommitPackageCache()
Dtor.
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Base for CommitPackageCache implementations (implements no chache).
ManagedFile get(const PoolItem &citem_r)
Provide a package.
repository_iterator knownRepositoriesBegin() const
Provide a package from a Repo.
Reference counted access to a _Tp object calling a custom Dispose function when the last AutoDispose ...
Reference to a PoolItem connecting ResObject and ResStatus.
void setCommitList(std::vector< sat::Solvable > commitList_r)
Download(commit) sequence of solvables to compute read ahead.
repo::PackageProviderPolicy _packageProviderPolicy
TraitsType::constPtrType constPtr
static const Edition noedition
Value representing noedition ("") This is in fact a valid Edition.
static ResPool instance()
Singleton ctor.