56 auto maybeCopyResultToDest ( std::string &&subPath ) {
59 MIL <<
"Target path is set, copying " << file.file() <<
" to " << *_targetPath/subPath << std::endl;
60 return std::move(file)
71 : _zyppContext(std::move(zyppCtx))
72 , _medium(std::move(medium))
73 , _path(std::move(path))
74 , _targetPath(std::move(targetPath))
77 MaybeAwaitable<expected<zypp::repo::RepoType>> execute( ) {
78 const auto &
url = _medium.baseUrl();
79 MIL <<
"going to probe the repo type at " <<
url <<
" (" << _path <<
")" << std::endl;
83 MIL <<
"Probed type NONE (not exists) at " <<
url <<
" (" << _path <<
")" << std::endl;
93 std::shared_ptr<Provide> providerRef = _zyppContext->provider();
98 return providerRef->attachMediaIfNeeded( _medium )
99 |
and_then([
this, providerRef]( MediaHandle medium )
102 return providerRef->provide( medium, _path/
"repodata/repomd.xml",
ProvideFileSpec().setCheckExistsOnly( !_targetPath.has_value() ).
setMirrorsAllowed(
false) )
103 |
and_then( maybeCopyResultToDest(
"repodata/repomd.xml") )
106 |
or_else( [
this, providerRef, medium]( std::exception_ptr err ) {
108 std::rethrow_exception (err);
113 DBG <<
"problem checking for repodata/repomd.xml file" << std::endl;
114 _error.remember ( err );
115 _gotMediaError =
true;
121 |
and_then( maybeCopyResultToDest(
"content") )
125 |
or_else( [
this, medium]( std::exception_ptr err ) {
128 std::rethrow_exception (err);
133 DBG <<
"problem checking for content file" << std::endl;
134 _error.remember ( err );
135 _gotMediaError =
true;
145 const auto &
url = medium.baseUrl();
148 if ( ! (
url.schemeIsDownloading() ||
url.schemeIsPlugin() ) ) {
152 MIL <<
"Probed type RPMPLAINDIR at " <<
url <<
" (" << _path <<
")" << std::endl;
160 MIL <<
"Probed type NONE at " <<
url <<
" (" << _path <<
")" << std::endl;
168 ContextRef _zyppContext;
171 std::optional<zypp::Pathname> _targetPath;
174 bool _gotMediaError =
false;
177 auto probeRepoLogic( ContextRef ctx,
RepoInfo repo, std::optional<zypp::Pathname> targetPath)
181 |
and_then( [ctx, path =
repo.path() ](
auto &&mediaHandle ) {
182 return probeRepoType( ctx, std::forward<decltype(mediaHandle)>(mediaHandle), path );
190 ProbeRepoLogic impl( std::move(ctx), std::move(medium), std::move(path), std::move(targetPath) );
191 zypp_co_return zypp_co_await(impl.execute());
194 MaybeAwaitable<expected<zypp::repo::RepoType> >
probeRepoType( ContextRef ctx,
RepoInfo repo, std::optional<zypp::Pathname> targetPath )
196 if constexpr ( ZYPP_IS_ASYNC )
197 return probeRepoLogic( std::move(ctx), std::move(
repo), std::move(targetPath) );
199 return probeRepoLogic( std::move(ctx), std::move(
repo), std::move(targetPath) );
204 auto readRepoFileLogic( ContextRef ctx,
zypp::Url repoFileUrl )
208 |
and_then([repoFileUrl](
auto local ){
209 DBG <<
"reading repo file " << repoFileUrl <<
", local path: " << local.file() << std::endl;
217 return readRepoFileLogic( std::move(ctx), std::move(repoFileUrl) );
222 struct CheckIfToRefreshMetadataLogic {
228 CheckIfToRefreshMetadataLogic( repo::RefreshContextRef refCtx,
LazyMediaHandle &&medium, ProgressObserverRef progressObserver )
229 : _refreshContext(
std::move(refCtx))
230 , _progress(
std::move( progressObserver ))
231 , _medium(
std::move( medium ))
234 MaybeAwaitable<expected<repo::RefreshCheckStatus>> execute( ) {
236 MIL <<
"Going to CheckIfToRefreshMetadata" << std::endl;
241 const auto &info = _refreshContext->repoInfo();
242 MIL <<
"Check if to refresh repo " << _refreshContext->repoInfo().alias() <<
" at " << _medium.baseUrl() <<
" (" << info.type() <<
")" << std::endl;
247 |
and_then( [
this](zypp::RepoStatus oldstatus) {
249 const auto &info = _refreshContext->repoInfo();
251 if ( oldstatus.
empty() ) {
252 MIL <<
"No cached metadata, going to refresh" << std::endl;
256 if ( _medium.baseUrl().schemeIsVolatile() ) {
257 MIL <<
"Never refresh CD/DVD" << std::endl;
262 MIL <<
"Forced refresh!" << std::endl;
266 if ( _medium.baseUrl().schemeIsLocal() ) {
279 if ( oldstatus == *cachestatus ) {
282 const auto refDelay = _refreshContext->zyppContext()->config().repo_refresh_delay();
283 if ( diff < refDelay ) {
285 WAR <<
"Repository '" << info.alias() <<
"' was refreshed in the future!" << std::endl;
288 MIL <<
"Repository '" << info.alias()
289 <<
"' has been refreshed less than repo.refresh.delay ("
291 <<
") minutes ago. Advising to skip refresh" << std::endl;
297 MIL <<
"Metadata and solv cache don't match. Check data on server..." << std::endl;
301 return info.type() | [
this]( zypp::repo::RepoType repokind ) {
304 return probeRepoType( _refreshContext->zyppContext(), _medium, _refreshContext->repoInfo().path() );
306 } |
and_then([
this, oldstatus]( zypp::repo::RepoType repokind ) {
309 _refreshContext->repoInfo().setProbedType( repokind );
311 auto dlContext = std::make_shared<repo::DownloadContext>( _refreshContext->zyppContext(), _refreshContext->repoInfo(), _refreshContext->targetDir() );
313 |
and_then( [
this, dlContext, oldstatus]( zypp::RepoStatus newstatus ){
315 if ( oldstatus == newstatus ) {
316 MIL <<
"repo has not changed" << std::endl;
321 MIL <<
"repo has changed, going to refresh" << std::endl;
322 MIL <<
"Old status: " << oldstatus <<
" New Status: " << newstatus << std::endl;
331 repo::RefreshContextRef _refreshContext;
332 ProgressObserverRef _progress;
333 LazyMediaHandle _medium;
339 CheckIfToRefreshMetadataLogic impl( std::move(refCtx), std::move(medium), std::move(progressObserver) );
340 zypp_co_return zypp_co_await(impl.execute());
346 struct RefreshMetadataLogic {
354 using DlContextRefType = std::shared_ptr<DlContextType>;
356 RefreshMetadataLogic( repo::RefreshContextRef refCtx,
LazyMediaHandle &&medium, ProgressObserverRef progressObserver )
357 : _refreshContext(
std::move(refCtx))
358 , _progress (
std::move( progressObserver ) )
359 , _medium (
std::move( medium ) )
362 MaybeAwaitable<expected<repo::RefreshContextRef>> execute() {
369 MIL <<
"RefreshCheckStatus returned: " << status << std::endl;
377 if (
zypp::IamNotRoot() && not zypp::PathInfo(_refreshContext->rawCachePath().dirname()).userMayWX() ) {
378 WAR <<
"No permision to write cache " << zypp::PathInfo(_refreshContext->rawCachePath().dirname()) << std::endl;
379 auto exception =
ZYPP_EXCPT_PTR( zypp::repo::RepoNoPermissionException( _refreshContext->repoInfo() ) );
383 MIL <<
"Going to refresh metadata from " << _medium.baseUrl() << std::endl;
388 return probeRepoType ( _refreshContext->zyppContext(), _medium, _refreshContext->repoInfo().path() )
389 |
and_then([
this]( zypp::repo::RepoType repokind ) {
391 auto &info = _refreshContext->repoInfo();
393 if ( info.type() != repokind ) {
394 _refreshContext->setProbedType( repokind );
396 info.setProbedType( repokind );
403 const zypp::Pathname &mediarootpath = _refreshContext->rawCachePath();
409 auto dlContext = std::make_shared<DlContextType>( _refreshContext->zyppContext(), _refreshContext->repoInfo(), _refreshContext->targetDir() );
410 dlContext->setPluginRepoverification( _refreshContext->pluginRepoverification() );
415 |
and_then([
this]( DlContextRefType && ) {
419 _refreshContext->saveToRawCache();
429 repo::RefreshContextRef _refreshContext;
430 ProgressObserverRef _progress;
431 LazyMediaHandle _medium;
432 zypp::Pathname _mediarootpath;
439 RefreshMetadataLogic impl( std::move(refCtx), std::move(medium), std::move(progressObserver));
440 zypp_co_return zypp_co_await(impl.execute());
444 auto refreshMetadataLogic( repo::RefreshContextRef refCtx, ProgressObserverRef progressObserver)
452 : rexception { info_r,
_(
"Failed to retrieve new repository metadata.") }
456 if ( rexception.historyEmpty() ) {
457 rexception.remember( old_r );
462 zypp::repo::RepoException rexception;
465 auto helper = std::make_shared<ExHelper>( ExHelper{ refCtx->repoInfo() } );
468 auto refreshPipeline = [ refCtx, progressObserver ]( zypp::MirroredOrigin origin ){
469 return refCtx->zyppContext()->provider()->prepareMedia( origin, zyppng::ProvideMediaSpec() )
470 |
and_then( [ refCtx , progressObserver](
auto mediaHandle )
mutable {
return refreshMetadata ( std::move(refCtx), std::move(mediaHandle), progressObserver ); } );
474 auto predicate = [ info = refCtx->repoInfo(), helper ](
const expected<repo::RefreshContextRef> &res ) ->
bool{
478 }
catch (
const zypp::repo::RepoNoPermissionException &e ) {
480 ERR <<
"Giving up..." << std::endl;
481 helper->remember( e );
483 }
catch (
const zypp::Exception &e ) {
484 ERR <<
"Trying another url..." << std::endl;
485 helper->remember( e );
494 return refCtx->repoInfo().repoOrigins()
496 | [helper]( expected<repo::RefreshContextRef> result ) {
499 ERR <<
"No more urls..." << std::endl;
508 MaybeAwaitable<expected<repo::RefreshContextRef> >
refreshMetadata( repo::RefreshContextRef refCtx, ProgressObserverRef progressObserver) {
509 return refreshMetadataLogic ( std::move(refCtx), std::move(progressObserver) );
515#ifdef ZYPP_ENABLE_ASYNC
523 , _args(
std::move(args)) { }
525 bool await_ready() const noexcept {
return false; }
527 expected<void> await_resume() {
532 void await_suspend( std::coroutine_handle<> cont )
534 MIL <<
"Starting repo2solv for repo " << _repo.alias () << std::endl;
535 _cont = std::move(cont);
536 _proc = Process::create();
537 _proc->connect( &Process::sigFinished, *me, &Repo2SolvOp::procFinished );
538 _proc->connect( &Process::sigReadyRead, *me, &Repo2SolvOp::readyRead );
540 std::vector<const char *> argsIn;
541 argsIn.reserve ( args.size() );
542 std::for_each( args.begin (), args.end(), [&](
const std::string &s ) { argsIn.push_back(s.data()); });
543 argsIn.push_back (
nullptr);
544 me->_proc->setOutputChannelMode ( Process::Merged );
545 if (!me->_proc->start( argsIn.data() )) {
546 setReady( expected<void>::error(
ZYPP_EXCPT_PTR(zypp::repo::RepoException ( me->_repo,
_(
"Failed to cache repo ( unable to start repo2solv ).") ))) );
551 const ByteArray &data = _proc->readLine();
552 const std::string &line = data.
asString();
557 void procFinished(
int ret ) {
559 while ( _proc->canReadLine() )
563 zypp::repo::RepoException ex( _repo,
zypp::str::form(
_(
"Failed to cache repo (%d)."), ret ));
564 ex.addHistory( zypp::str::Str() << _proc->executedCommand() << std::endl << _errdetail << _proc->execError() );
568 setReady( expected<void>::success() );
571 void setReady( expected<void> &&val ) {
572 _result = std::move(val);
578 zypp::RepoInfo _repo;
580 std::string _errdetail;
581 std::coroutine_handle<> _cont;
582 std::optional<expected<void>> _result;
586 MIL <<
"Starting repo2solv for repo " << repo.
alias () << std::endl;
587 co_return co_await Repo2SolvOp{ std::move(repo), std::move(args) };
592 std::string errdetail;
594 for ( std::string output( prog.receiveLine() ); output.length(); output = prog.receiveLine() ) {
595 WAR <<
" " << output;
599 int ret = prog.close();
602 zypp::repo::RepoException ex(repo,
zypp::str::form(
_(
"Failed to cache repo (%d)."), ret ));
603 ex.addHistory( zypp::str::Str() << prog.command() << std::endl << errdetail << prog.execError() );
610 struct BuildCacheLogic {
613 : _refCtx( std::move(refCtx) )
615 , _progressObserver( std::move(progressObserver) )
618 MaybeAwaitable<expected<repo::RefreshContextRef>> execute() {
629 const auto &options = _refCtx->repoManagerOptions();
640 if ( raw_metadata_status.
empty() )
646 zypp::Pathname mediarootParent { _mediarootpath.dirname() };
649 && (
zypp::IamRoot() || zypp::PathInfo(mediarootParent).userMayWX() ) ) {
656 WAR <<
"No permission to write raw cache " << mediarootParent << std::endl;
657 auto exception =
ZYPP_EXCPT_PTR( zypp::repo::RepoNoPermissionException( _refCtx->repoInfo() ) );
665 bool needs_cleaning =
false;
666 const auto &info = _refCtx->repoInfo();
667 if ( _refCtx->repoManager()->isCached( info ) )
669 MIL << info.alias() <<
" is already cached." << std::endl;
674 if ( *cache_status == raw_metadata_status )
676 MIL << info.alias() <<
" cache is up to date with metadata." << std::endl;
680 return makeReadyTask(
682 |
and_then([]( zypp::Pathname base ){
683 if ( ! zypp::PathInfo(base/
"solv.idx").isExist() )
690 MIL << info.alias() <<
" cache rebuild is forced" << std::endl;
694 needs_cleaning =
true;
701 auto r = _refCtx->repoManager()->cleanCache(info);
706 MIL << info.alias() <<
" building cache..." << info.type() << std::endl;
720 zypp::Exception ex(
zypp::str::form(
_(
"Can't create cache at %s - no writing permissions."), base->c_str()) );
724 zypp::Pathname solvfile = *base /
"solv";
727 zypp::repo::RepoType repokind = info.type();
730 switch ( repokind.
toEnum() )
740 MIL <<
"repo type is " << repokind << std::endl;
742 return mountIfRequired( repokind, info )
743 |
and_then([
this, repokind, solvfile = std::move(solvfile) ]( std::optional<ProvideMediaHandle> forPlainDirs )
mutable {
745 const auto &info = _refCtx->repoInfo();
747 switch ( repokind.
toEnum() )
757#ifdef ZYPP_REPO2SOLV_PATH
758 cmd.push_back( ZYPP_REPO2SOLV_PATH );
760 cmd.push_back( zypp::PathInfo(
"/usr/bin/repo2solv" ).isFile() ?
"repo2solv" :
"repo2solv.sh" );
763 cmd.push_back(
"-o" );
764 cmd.push_back( solvfile.
asString() );
765 cmd.push_back(
"-X" );
771 cmd.push_back(
"-R" );
773 std::optional<zypp::Pathname> localPath = forPlainDirs.has_value() ? forPlainDirs->localPath() : zypp::Pathname();
778 cmd.push_back( (*localPath / info.path().absolutename()).c_str() );
781 cmd.push_back( _productdatapath.asString() );
783 return repo2Solv( info, std::move(cmd) )
784 |
and_then( [guard = std::move(guard), solvfile = std::move(solvfile) ]()
mutable {
786 guard.resetDispose();
796 |
and_then([
this, raw_metadata_status](){
798 return _refCtx->repoManager()->setCacheStatus( _refCtx->repoInfo(), raw_metadata_status );
802 MIL <<
"Commit cache.." << std::endl;
807 |
or_else ( [
this]( std::exception_ptr e ) {
814 MaybeAwaitable<expected<std::optional<ProvideMediaHandle>>> mountIfRequired ( zypp::repo::RepoType repokind, zypp::RepoInfo info ) {
818 return _refCtx->zyppContext()->provider()->attachMedia( info.
url(), ProvideMediaSpec() )
819 |
and_then( []( ProvideMediaHandle handle ) {
820 return makeReadyTask(
make_expected_success( std::optional<ProvideMediaHandle>( std::move(handle)) ));
825 repo::RefreshContextRef _refCtx;
827 ProgressObserverRef _progressObserver;
829 zypp::Pathname _mediarootpath;
830 zypp::Pathname _productdatapath;
836 BuildCacheLogic impl( std::move(refCtx), policy, std::move(progressObserver));
837 zypp_co_return zypp_co_await ( impl.execute () );
844 struct AddRepoLogic {
846 AddRepoLogic( RepoManagerRef &&repoMgrRef,
RepoInfo &&info, ProgressObserverRef &&myProgress,
const zypp::TriBool & forcedProbe )
847 : _repoMgrRef(
std::move(repoMgrRef) )
848 , _doProbeUrl(
zypp::indeterminate(forcedProbe) ? _repoMgrRef->options().probe :
bool(forcedProbe) )
849 , _info(
std::move(info) )
850 , _myProgress (
std::move(myProgress) )
853 MaybeAwaitable<expected<RepoInfo> > execute() {
859 MIL <<
"Try adding repo " << _info << std::endl;
863 if ( _repoMgrRef->repos().find(_info) != _repoMgrRef->repos().end() )
869 DBG <<
"unknown repository type, probing" << std::endl;
872 |
and_then([
this]( zypp::repo::RepoType probedtype ) {
885 |
and_then( [
this](
RepoInfo tosave ){
return _repoMgrRef->addProbedRepository( tosave, tosave.
type() ); })
888 MIL <<
"done" << std::endl;
891 |
or_else( [
this]( std::exception_ptr e) {
893 MIL <<
"done" << std::endl;
899 RepoManagerRef _repoMgrRef;
902 ProgressObserverRef _myProgress;
908 AddRepoLogic impl( std::move(mgr), std::move(info), std::move(myProgress), forcedProbe );
909 zypp_co_return zypp_co_await ( impl.execute () );
914 struct AddReposLogic {
915 AddReposLogic( RepoManagerRef &&repoMgrRef,
zypp::Url &&
url, ProgressObserverRef &&myProgress )
916 : _repoMgrRef(
std::move(repoMgrRef) )
918 , _myProgress (
std::move(myProgress) )
921 MaybeAwaitable<expected<void>> execute() {
926 |
and_then([
this]( std::list<RepoInfo> repos ) {
928 for ( std::list<RepoInfo>::const_iterator it = repos.begin();
933 for_ ( kit, _repoMgrRef->repoBegin(), _repoMgrRef->repoEnd() )
935 if ( (*it).alias() == (*kit).alias() )
937 ERR <<
"To be added repo " << (*it).alias() <<
" conflicts with existing repo " << (*kit).alias() << std::endl;
943 std::string filename = zypp::Pathname(_url.getPathName()).basename();
944 if ( filename == zypp::Pathname() )
950 const auto &options = _repoMgrRef->options();
955 zypp::Pathname repofile = _repoMgrRef->generateNonExistingName( options.knownReposPath, filename );
957 MIL <<
"Saving " << repos.size() <<
" repo" << ( repos.size() ?
"s" :
"" ) <<
" in " << repofile << std::endl;
959 std::ofstream file(repofile.
c_str());
966 for ( std::list<RepoInfo>::iterator it = repos.begin();
970 MIL <<
"Saving " << (*it).alias() << std::endl;
978 it->dumpAsIniOn(file);
979 it->setFilepath(repofile);
980 it->setMetadataPath( *rawCachePath );
981 it->setPackagesPath( *pckCachePath );
982 _repoMgrRef->reposManip().insert(*it);
984 zypp::HistoryLog( _repoMgrRef->options().rootDir).addRepository(*it);
987 MIL <<
"done" << std::endl;
993 RepoManagerRef _repoMgrRef;
995 ProgressObserverRef _myProgress;
1002 AddReposLogic impl( std::move(mgr), std::move(
url), std::move(myProgress) );
1003 zypp_co_return zypp_co_await ( impl.execute () );
1009 struct RefreshGeoIpLogic {
1016 : _zyppCtx(
std::move(zyppCtx) )
1017 , _origins(
std::move(origins) )
1020 MaybeAwaitable<expected<void>> execute() {
1024 if ( !_zyppCtx->config().geoipEnabled() ) {
1025 MIL <<
"GeoIp disabled via ZConfig, not refreshing the GeoIP information." << std::endl;
1029 std::vector<std::string> hosts;
1030 for (
const zypp::MirroredOrigin &origin : _origins ){
1031 if ( !origin.schemeIsDownloading () )
1034 for (
const auto &originEndpoint : origin ) {
1035 const auto &host = originEndpoint.url().getHost();
1036 if (
zypp::any_of( _zyppCtx->config().geoipHostnames(), [&host](
const auto &elem ){ return ( zypp::str::compareCI( host, elem ) == 0 ); } ) ) {
1037 hosts.push_back( host );
1043 if ( hosts.empty() ) {
1044 MIL <<
"No configured geoip URL found, not updating geoip data" << std::endl;
1048 _geoIPCache = _zyppCtx->config().geoipCachePath();
1051 MIL <<
"Unable to create cache directory for GeoIP." << std::endl;
1055 if (
zypp::IamNotRoot() && not zypp::PathInfo(_geoIPCache).userMayRWX() ) {
1056 MIL <<
"No access rights for the GeoIP cache directory." << std::endl;
1065 zypp::PathInfo pi( dir/entry.
name );
1066 auto age = std::chrono::system_clock::now() - std::chrono::system_clock::from_time_t( pi.mtime() );
1067 if ( age < std::chrono::hours(24) )
1070 MIL <<
"Removing GeoIP file for " << entry.
name <<
" since it's older than 24hrs." << std::endl;
1075 auto firstOfCb = [
this]( std::string hostname ) {
1078 if ( zypp::PathInfo( _geoIPCache / hostname ).isExist() ) {
1079 MIL <<
"Skipping GeoIP request for " << hostname <<
" since a valid cache entry exists." << std::endl;
1080 return makeReadyTask(
false);
1083 MIL <<
"Query GeoIP for " << hostname << std::endl;
1090 }
catch(
const zypp::Exception &e ) {
1092 MIL <<
"Ignoring invalid GeoIP hostname: " << hostname << std::endl;
1093 return makeReadyTask(
false);
1097 return _zyppCtx->provider()->attachMedia( url, ProvideMediaSpec() )
1098 |
and_then( [
this]( MediaHandle provideHdl ) {
return _zyppCtx->provider()->provide( provideHdl,
"/geoip", ProvideFileSpec() ); })
1099 |
inspect_err( [hostname](
const std::exception_ptr& ){
MIL <<
"Failed to query GeoIP from hostname: " << hostname << std::endl; } )
1100 |
and_then( [hostname,
this]( ProvideRes provideRes ) {
1104 constexpr auto writeHostToFile = [](
const zypp::Pathname &fName,
const std::string &host ){
1106 out.open( fName.
asString(), std::ios_base::trunc );
1107 if ( out.is_open() ) {
1108 out << host << std::endl;
1110 MIL <<
"Failed to create/open GeoIP cache file " << fName << std::endl;
1114 std::string geoipMirror;
1116 zypp::xml::Reader reader( provideRes.
file() );
1117 if ( reader.seekToNode( 1,
"host" ) ) {
1118 const auto &str = reader.nodeText().asString();
1126 MIL <<
"Storing geoIP redirection: " << hostname <<
" -> " << str << std::endl;
1131 MIL <<
"No host entry or empty file returned for GeoIP, remembering for 24hrs" << std::endl;
1133 }
catch (
const zypp::Exception &e ) {
1135 MIL <<
"Empty or invalid GeoIP file, not requesting again for 24hrs" << std::endl;
1138 writeHostToFile( _geoIPCache / hostname, geoipMirror );
1141 | []( expected<void> res ) {
return res.
is_valid(); };
1144 return std::move(hosts)
1145 |
firstOf( std::move(firstOfCb),
false, zyppng::detail::ContinueUntilValidPredicate() )
1146 | [](
bool foundGeoIP ) {
1149 MIL <<
"Successfully queried GeoIP data." << std::endl;
1153 MIL <<
"Failed to query GeoIP data." << std::endl;
1154 return expected<void>::error( std::make_exception_ptr( zypp::Exception(
"No valid geoIP url found" )) );
1160 ContextRef _zyppCtx;
1161 zypp::MirroredOriginSet _origins;
1162 zypp::Pathname _geoIPCache;
1170 zypp_co_return zypp_co_await ( impl.execute () );
1175 RefreshGeoIpLogic impl( std::move(ctx), std::move(origins) );
1176 zypp_co_return zypp_co_await ( impl.execute () );