11#include <zypp/ng/Context>
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>
36 L_DBG(
"1222398") <<
"rawCachePath " <<
PathInfo( rawCachePath ) << std::endl;
43 if(
tmpdir.path().empty() ) {
48 , std::move(zyppContext)
50 , std::move(rawCachePath)
55 template<
typename ZyppContextRefType>
58 MIL <<
"Deleting RefreshContext" << std::endl;
61 template<
typename ZyppContextRefType>
66 L_DBG(
"1222398") <<
"PREEX rawCachePath " <<
PathInfo( _rawCachePath ) << std::endl;
67 L_DBG(
"1222398") <<
"PREEX siblinghPath " <<
PathInfo( _tmpDir.path() ) << std::endl;
71 L_DBG(
"1222398") <<
"PSTEX rawCachePath " <<
PathInfo( _rawCachePath ) << std::endl;
72 L_DBG(
"1222398") <<
"PSTEX siblinghPath " <<
PathInfo( _tmpDir.path() ) << std::endl;
76 template<
typename ZyppContextRefType>
82 template<
typename ZyppContextRefType>
85 return _tmpDir.path();
88 template<
typename ZyppContextRefType>
94 template<
typename ZyppContextRefType>
100 template<
typename ZyppContextRefType>
106 template<
typename ZyppContextRefType>
109 return _repoManagerOptions;
112 template<
typename ZyppContextRefType>
118 template<
typename ZyppContextRefType>
124 template<
typename ZyppContextRefType>
127 return _pluginRepoverification;
130 template<
typename ZyppContextRefType>
133 if ( _probedType && *_probedType ==
rType )
137 _sigProbedTypeChanged.emit(
rType);
140 template<
typename ZyppContextRefType>
146 template<
typename ZyppContextRefType>
149 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.
Wrapper class for stat/lstat.
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.