11#include <zypp/ng/Context>
13#include <zypp-core/fs/PathInfo.h>
14#include <zypp-core/base/Gettext.h>
18 template<
typename ZyppContextRefType>
21 , _repoInfo(
std::move(info) )
22 , _rawCachePath(
std::move(rawCachePath) )
23 , _tmpDir(
std::move(tempDir) )
24 , _repoManagerOptions(
std::move(opts) )
27 template<
typename ZyppContextRefType>
31 using CtxRefType = RefreshContextRef<ZyppContextRefType>;
40 return expected<CtxRefType>::success( std::make_shared<CtxType>( private_constr_t{}
41 , std::move(zyppContext)
43 , std::move(rawCachePath)
48 template<
typename ZyppContextRefType>
51 MIL <<
"Deleting RefreshContext" << std::endl;
54 template<
typename ZyppContextRefType>
60 template<
typename ZyppContextRefType>
66 template<
typename ZyppContextRefType>
69 return _tmpDir.path();
72 template<
typename ZyppContextRefType>
78 template<
typename ZyppContextRefType>
84 template<
typename ZyppContextRefType>
90 template<
typename ZyppContextRefType>
93 return _repoManagerOptions;
96 template<
typename ZyppContextRefType>
102 template<
typename ZyppContextRefType>
108 template<
typename ZyppContextRefType>
111 return _pluginRepoverification;
114 template<
typename ZyppContextRefType>
117 if ( _probedType && *_probedType == rType )
121 _sigProbedTypeChanged.emit(rType);
124 template<
typename ZyppContextRefType>
130 template<
typename ZyppContextRefType>
133 return _sigProbedTypeChanged;
Base class for Exception.
What is known about a repository.
bool empty() const
Test for an empty path.
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.
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.
ZyppContextRefType _zyppContext
Repository type enumeration.
#define ZYPP_EXCPT_PTR(EXCPT)
Drops a logline and returns Exception as a std::exception_ptr.