11#include <zypp/ng/Context>
18 template<
typename ZyppContextRefType>
21 , _repoManager(
std::move(repoManager) )
22 , _repoInfo(
std::move(info) )
23 , _rawCachePath(
std::move(rawCachePath) )
24 , _tmpDir(
std::move(tempDir) )
26 if ( _repoManager->pluginRepoverification().checkIfNeeded() )
27 _pluginRepoverification = _repoManager->pluginRepoverification();
30 template<
typename ZyppContextRefType>
33 using namespace operators;
44 if(
tmpdir.path().empty() ) {
48 MIL <<
"Creating RefreshContext " << std::endl;
51 , std::move(zyppContext)
53 , std::move(rawCachePath)
55 , std::move(repoManager)));
59 template<
typename ZyppContextRefType>
62 MIL <<
"Deleting RefreshContext" << std::endl;
65 template<
typename ZyppContextRefType>
71 template<
typename ZyppContextRefType>
77 template<
typename ZyppContextRefType>
80 return _tmpDir.path();
83 template<
typename ZyppContextRefType>
89 template<
typename ZyppContextRefType>
95 template<
typename ZyppContextRefType>
101 template<
typename ZyppContextRefType>
107 template<
typename ZyppContextRefType>
110 return _repoManager->options();
113 template<
typename ZyppContextRefType>
119 template<
typename ZyppContextRefType>
125 template<
typename ZyppContextRefType>
128 return _pluginRepoverification;
131 template<
typename ZyppContextRefType>
134 if ( _probedType && *_probedType ==
rType )
138 _sigProbedTypeChanged.emit(
rType);
141 template<
typename ZyppContextRefType>
147 template<
typename ZyppContextRefType>
150 return _sigProbedTypeChanged;
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Base class for Exception.
What is known about a repository.
Provide a new empty temporary directory and recursively delete it when no longer needed.
static TmpDir makeSibling(const Pathname &sibling_r)
Provide a new empty temporary directory as sibling.
int exchange(const Pathname &lpath, const Pathname &rpath)
Exchanges two files or directories.
expected< zypp::Pathname > rawcache_path_for_repoinfo(const RepoManagerOptions &opt, const RepoInfo &info)
Calculates the raw cache path for a repository, this is usually /var/cache/zypp/alias.
ResultType and_then(const expected< T, E > &exp, Function &&f)
ZyppContextRefType _zyppContext
zypp::RepoManagerFlags::CacheBuildPolicy _policy
Repository type enumeration.
#define ZYPP_EXCPT_PTR(EXCPT)
Drops a logline and returns Exception as a std::exception_ptr.