14#include <zypp/base/Logger.h>
15#include <zypp/base/Exception.h>
16#include <zypp/PathInfo.h>
38 return str <<
"[S" <<
obj._repo.id() <<
":" <<
obj._mediaNr <<
"]"
39 <<
" " <<
obj._repo.info().alias();
64 if (
pi->mediaNr() == 0 )
66 if (
pi->repoInfo().baseUrlsEmpty() )
68 std::string scheme(
pi->repoInfo().baseUrlsBegin()->getScheme() );
69 return ( scheme ==
"dvd" || scheme ==
"cd" );
113 &&
pi.status().isToBeInstalled()
146 if ( !
ret->empty() )
160 if ( !
ret->empty() )
RepoManager implementation.
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
void resetDispose()
Set no dispose function.
Base class for Exception.
bool isCached() const
Whether the package is cached.
Combining sat::Solvable and ResStatus.
IMediaKey _lastInteractive
CommitPackageCacheReadAhead(PackageProvider packageProvider_r)
bool onInteractiveMedia(const PoolItem &pi) const
Return whether pi is located on a CD/DVD.
void doCacheLastInteractive(const PoolItem &citem_r)
cacheLastInteractive helper .
void cacheLastInteractive(const PoolItem &citem_r)
Fill the cache.
ManagedFile get(const PoolItem &citem_r) override
Provide the package.
DefaultIntegral< unsigned, 0 > _dbgChanges
const std::vector< sat::Solvable > & commitList() const
virtual ManagedFile sourceProvidePackage(const PoolItem &pi) const
Let the Source provide the package.
virtual ManagedFile sourceProvideCachedPackage(const PoolItem &pi) const
Let the Source provide an already cached package.
CommitPackageCache::PackageProvider PackageProvider
Target::commit helper optimizing package provision.
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.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.