44      struct QueryInstalledEditionHelper
 
   46        bool operator()( 
const std::string & name_r, 
const Edition & ed_r, 
const Arch & arch_r )
 const 
   48          rpm::librpmDb::db_const_iterator it( 
"/" );
 
   49          for ( it.findByName( name_r ); *it; ++it )
 
   51            if ( arch_r == it->tag_arch()
 
   80      _impl->_repos.insert( 
_impl->_repos.begin(), 
pool.knownRepositoriesBegin(), 
pool.knownRepositoriesEnd() );
 
   81      _impl->_packageProviderPolicy.queryInstalledCB( QueryInstalledEditionHelper() );
 
 
  123      if ( getenv(
"ZYPP_COMMIT_NO_PACKAGE_CACHE") )
 
  125          MIL << 
"$ZYPP_COMMIT_NO_PACKAGE_CACHE is set." << endl;
 
  126          _pimpl.reset( 
new Impl( std::move(packageProvider_r) ) ); 
 
 
  144    { 
_pimpl->setCommitList( std::move(commitList_r) ); }
 
 
  147    { 
return _pimpl->get( citem_r ); }
 
 
  150    { 
return _pimpl->preloaded(); }
 
 
  153    { 
_pimpl->preloaded( newval_r ); }
 
 
bool operator()(const zypp::Arch &lhs, const zypp::Arch &rhs) const
Default order for std::container based Arch::compare.
static const Edition noedition
Value representing noedition ("") This is in fact a valid Edition.
Combining sat::Solvable and ResStatus.
static ResPool instance()
Singleton ctor.
Candidate delta and patches for a package.
Policies and options for PackageProvider.
Provide a package from a Repo.
ManagedFile providePackage() const
Provide the package.
ManagedFile providePackageFromCache() const
Provide the package if it is cached.
Base for CommitPackageCache implementations (implements no chache).
~CommitPackageCache()
Dtor.
CommitPackageCache(PackageProvider packageProvider_r=RepoProvidePackage())
Ctor.
void setCommitList(std::vector< sat::Solvable > commitList_r)
Download(commit) sequence of solvables to compute read ahead.
bool preloaded() const
Whether preloaded hint is set.
function< ManagedFile(const PoolItem &, bool)> PackageProvider
RW_pointer< Impl > _pimpl
Pointer to implementation.
ManagedFile get(const PoolItem &citem_r)
Provide a package.
ManagedFile operator()(const PoolItem &pi, bool fromCache_r)
Provide package optionally fron cache only.
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Easy-to use interface to the ZYPP dependency resolver.
AutoDispose< const Pathname > ManagedFile
A Pathname plus associated cleanup code to be executed when path is no longer needed.
bool isKind(const SolvableType< Derived > &solvable_r)
Test whether the Solvable is of a certain ResKind.
repo::PackageProviderPolicy _packageProviderPolicy
repo::RepoMediaAccess _access
std::list< Repository > _repos