66 if ( pi->mediaNr() == 0 )
68 if ( pi->repoInfo().baseUrlsEmpty() )
70 std::string scheme( pi->repoInfo().baseUrlsBegin()->getScheme() );
71 return ( scheme ==
"dvd" || scheme ==
"cd" );
100 unsigned addToCache = 0;
101 bool sawCitem =
false;
121 if ( fromSource->empty() )
123 ERR <<
"Copy to cache failed on " << fromSource << endl;
151 if ( ! ret->empty() )
RepoInfo info() const
Return any associated RepoInfo.
std::string alias() const
unique identifier for this source.
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
IdType id() const
Expert backdoor.
void resetDispose()
Set no dispose function.
Target::commit helper optimizing package provision.
bool onInteractiveMedia(const PoolItem &pi) const
Return whether pi is located on a CD/DVD.
bool isCached() const
Whether the package is cached.
DefaultIntegral< unsigned, 0 > _dbgChanges
IMediaKey _lastInteractive
virtual ManagedFile get(const PoolItem &citem_r)
Provide the package.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
virtual ManagedFile sourceProvidePackage(const PoolItem &pi) const
Let the Source provide the package.
ResObject::constPtr resolvable() const
Returns the ResObject::constPtr.
CommitPackageCache::PackageProvider PackageProvider
void cacheLastInteractive(const PoolItem &citem_r)
Fill the cache.
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
ResStatus & status() const
Returns the current status.
const std::vector< sat::Solvable > & commitList() const
void doCacheLastInteractive(const PoolItem &citem_r)
cacheLastInteractive helper .
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).
virtual ManagedFile sourceProvideCachedPackage(const PoolItem &pi) const
Let the Source provide an already cached package.
Base class for Exception.
bool isToBeInstalled() const
CommitPackageCacheReadAhead(const Pathname &, const PackageProvider &packageProvider_r)
Reference counted access to a _Tp object calling a custom Dispose function when the last AutoDispose ...
Reference to a PoolItem connecting ResObject and ResStatus.