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()
95 return pkgProvider.providePackage();
120 if ( getenv(
"ZYPP_COMMIT_NO_PACKAGE_CACHE") )
122 MIL <<
"$ZYPP_COMMIT_NO_PACKAGE_CACHE is set." << endl;
153 {
return str << *obj.
_pimpl; }
Candidate delta and patches for a package.
PackageProviderPolicy & queryInstalledCB(QueryInstalledCB queryInstalledCB_r)
Set callback.
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.
bool isKind(const ResKind &kind_r) const
virtual ManagedFile get(const PoolItem &citem_r)
Provide the package.
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.
void setCommitList(std::vector< sat::Solvable > commitList_r)
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.
ManagedFile providePackage() const
Provide the package.
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Combining sat::Solvable and ResStatus.
void setCommitList(std::vector< sat::Solvable > commitList_r)
Download(commit) sequence of solvables to compute read ahead.
repo::PackageProviderPolicy _packageProviderPolicy
bool preloaded() const
Whether preloaded hint is set.
static const Edition noedition
Value representing noedition ("") This is in fact a valid Edition.
static ResPool instance()
Singleton ctor.