64 if ( pi->mediaNr() == 0 )
66 if ( pi->repoInfo().baseUrlsEmpty() )
68 std::string scheme( pi->repoInfo().baseUrls().front().getScheme() );
69 return ( scheme ==
"dvd" || scheme ==
"cd" );
98 unsigned addToCache = 0;
99 bool sawCitem =
false;
119 if ( fromSource->
empty() )
121 ERR <<
"Copy to cache failed on " << fromSource << endl;
146 if ( ! ret->
empty() )
160 if ( ! ret->
empty() )
void resetDispose()
Set no dispose function.
Base class for Exception.
bool isCached() const
Whether the package is cached.
Combining sat::Solvable and ResStatus.
ResObject::constPtr resolvable() const
Returns the ResObject::constPtr.
ResStatus & status() const
Returns the current status.
IdType id() const
Expert backdoor.
RepoInfo info() const
Return any associated RepoInfo.
bool isToBeInstalled() const
bool empty() const
Test for an empty path.
std::string alias() const
unique identifier for this source.
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.
Impl(PackageProvider &&packageProvider_r)
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.
AutoDispose< const Pathname > ManagedFile
A Pathname plus associated cleanup code to be executed when path is no longer needed.
bool isKind(const ResKind &val_r)
Convenient test for ResKinds.
#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.