libzypp 17.38.15
zyppng::RepoManager Class Reference

The RepoManager class Provides knowledge and methods to maintain repo settings and metadata for a given context. More...

#include <zypp/ng/repomanager.h>

Inheritance diagram for zyppng::RepoManager:

Classes

struct  MatchServiceAlias
 Functor thats filter RepoInfo by service which it belongs to. More...

Public Types

using ContextRefType = ContextRef
using ContextType = Context
using RawMetadataRefreshPolicy = zypp::RepoManagerFlags::RawMetadataRefreshPolicy
using CacheBuildPolicy = zypp::RepoManagerFlags::CacheBuildPolicy
using RefreshCheckStatus = zypp::RepoManagerFlags::RefreshCheckStatus
using RefreshServiceBit = zypp::RepoManagerFlags::RefreshServiceBit
 Flags for tuning RefreshService.
using RefreshServiceOptions = zypp::RepoManagerFlags::RefreshServiceOptions
using ServiceSet = std::set<ServiceInfo>
 ServiceInfo typedefs.
using ServiceConstIterator = ServiceSet::const_iterator
using ServiceSizeType = ServiceSet::size_type
using RepoSet = std::set<RepoInfo>
 RepoInfo typedefs.
using RepoConstIterator = RepoSet::const_iterator
using RepoSizeType = RepoSet::size_type
Public Types inherited from zyppng::Base
using Ptr = std::shared_ptr<Base>
using WeakPtr = std::weak_ptr<Base>

Public Member Functions

 ZYPP_DECL_PRIVATE_CONSTR_ARGS (RepoManager, ContextRef zyppCtx, RepoManagerOptions opt)
virtual ~RepoManager ()
expected< voidinitialize ()
ContextRefType zyppContext () const
const RepoManagerOptionsoptions () const
bool repoEmpty () const
RepoSizeType repoSize () const
RepoConstIterator repoBegin () const
RepoConstIterator repoEnd () const
bool hasRepo (const std::string &alias) const
RepoInfo getRepo (const std::string &alias) const
expected< zypp::PathnamemetadataPath (const RepoInfo &info) const
expected< zypp::PathnamepackagesPath (const RepoInfo &info) const
expected< RepoStatusmetadataStatus (const RepoInfo &info) const
expected< voidcleanMetadata (const RepoInfo &info, ProgressObserverRef myProgress=nullptr)
expected< voidcleanPackages (const RepoInfo &info, ProgressObserverRef myProgress=nullptr, bool isAutoClean=false)
expected< voidcleanCacheDirGarbage (ProgressObserverRef myProgress=nullptr)
expected< voidcleanCache (const RepoInfo &info, ProgressObserverRef myProgress=nullptr)
expected< boolisCached (const RepoInfo &info) const
expected< RepoStatuscacheStatus (const RepoInfo &info) const
expected< voidloadFromCache (const RepoInfo &info, ProgressObserverRef myProgress=nullptr)
expected< RepoInfoaddProbedRepository (RepoInfo info, zypp::repo::RepoType probedType)
expected< voidremoveRepository (const RepoInfo &info, ProgressObserverRef myProgress=nullptr)
expected< RepoInfomodifyRepository (const std::string &alias, const RepoInfo &newinfo_r, ProgressObserverRef myProgress=nullptr)
expected< RepoInfogetRepositoryInfo (const std::string &alias)
expected< RepoInfogetRepositoryInfo (const zypp::Url &url, const zypp::url::ViewOption &urlview)
expected< RefreshCheckStatuscheckIfToRefreshMetadata (const RepoInfo &info, const zypp::MirroredOrigin &origin, RawMetadataRefreshPolicy policy)
expected< RefreshCheckStatuscheckIfToRefreshMetadata (const RepoInfo &info, const zypp::Url &url, RawMetadataRefreshPolicy policy)
expected< voidrefreshMetadata (const RepoInfo &info, RawMetadataRefreshPolicy policy, ProgressObserverRef myProgress=nullptr)
 Refresh local raw cache.
std::vector< std::pair< RepoInfo, expected< void > > > refreshMetadata (std::vector< RepoInfo > infos, RawMetadataRefreshPolicy policy, ProgressObserverRef myProgress=nullptr)
expected< zypp::repo::RepoTypeprobe (const zypp::MirroredOrigin &origin, const zypp::Pathname &path=zypp::Pathname()) const
 Probe the metadata type of a repository located at url.
expected< voidbuildCache (const RepoInfo &info, CacheBuildPolicy policy, ProgressObserverRef myProgress=nullptr)
expected< RepoInfoaddRepository (const RepoInfo &info, const ProgressObserverRef myProgress=nullptr, const zypp::TriBool &forcedProbe=zypp::indeterminate)
expected< voidaddRepositories (const zypp::Url &url, ProgressObserverRef myProgress=nullptr)
bool serviceEmpty () const
ServiceSizeType serviceSize () const
ServiceConstIterator serviceBegin () const
ServiceConstIterator serviceEnd () const
bool hasService (const std::string &alias) const
ServiceInfo getService (const std::string &alias) const
expected< zypp::repo::ServiceTypeprobeService (const zypp::Url &url) const
expected< voidaddService (const ServiceInfo &service)
expected< voidaddService (const std::string &alias, const zypp::Url &url)
expected< voidremoveService (const std::string &alias)
expected< voidremoveService (const ServiceInfo &service)
expected< voidrefreshService (const std::string &alias, const RefreshServiceOptions &options_r)
expected< voidrefreshService (const ServiceInfo &service, const RefreshServiceOptions &options_r)
expected< voidrefreshServices (const RefreshServiceOptions &options_r)
expected< voidmodifyService (const std::string &oldAlias, const ServiceInfo &newService)
expected< voidsetCacheStatus (const RepoInfo &info, const RepoStatus &status)
expected< voidrefreshGeoIp (const RepoInfo::url_set &urls)
template<typename OutputIterator>
void getRepositoriesInService (const std::string &alias, OutputIterator out) const
zypp::Pathname generateNonExistingName (const zypp::Pathname &dir, const std::string &basefilename) const
 Generate a non existing filename in a directory, using a base name.
std::string generateFilename (const RepoInfo &info) const
std::string generateFilename (const ServiceInfo &info) const
const RepoSetrepos () const
RepoSetreposManip ()
PluginRepoverification pluginRepoverification () const
Public Member Functions inherited from zyppng::Base
 Base ()
virtual ~Base ()
WeakPtr parent () const
void addChild (const Base::Ptr &child)
void removeChild (const Ptr &child)
const std::unordered_set< Ptr > & children () const
std::thread::id threadId () const
template<typename T>
std::vector< std::weak_ptr< T > > findChildren () const
template<typename T>
std::shared_ptr< T > shared_this () const
template<typename T>
std::shared_ptr< T > shared_this ()
template<typename T>
std::weak_ptr< T > weak_this () const
template<typename T>
std::weak_ptr< T > weak_this ()
template<typename SenderFunc, typename ReceiverFunc>
auto connect (SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc)
template<typename SenderFunc, typename ReceiverFunc, typename ... Tracker>
std::enable_if_t< std::is_member_function_pointer_v< SenderFunc >, connectionconnectFunc (SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers)
void setData (uint32_t quark, zypp::AutoDispose< void * > data)
voiddata (uint32_t quark)
void clearData (uint32_t quark)

Static Public Member Functions

template<typename ... Args>
static expected< std::shared_ptr< RepoManager > > create (Args &&...args)
static expected< RepoStatusmetadataStatus (const RepoInfo &info, const RepoManagerOptions &options)
static zypp::repo::RepoType probeCache (const zypp::Pathname &path_r)
 Probe Metadata in a local cache directory.
static expected< RepoStatuscacheStatus (const RepoInfo &info, const RepoManagerOptions &options)
static expected< voidtouchIndexFile (const RepoInfo &info, const RepoManagerOptions &options)
Static Public Member Functions inherited from zyppng::Base
template<typename Obj, typename Functor>
static decltype(auto) make_base_slot (Obj *o, Functor &&f)
template<typename SenderFunc, typename ReceiverFunc>
static auto connect (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, typename internal::MemberFunction< ReceiverFunc >::ClassType &recv, ReceiverFunc &&rFunc)
template<typename SenderFunc, typename ReceiverFunc, typename ... Tracker>
static auto connectFunc (typename internal::MemberFunction< SenderFunc >::ClassType &s, SenderFunc &&sFun, ReceiverFunc &&rFunc, const Tracker &...trackers)

Protected Member Functions

expected< voidsaveService (ServiceInfo &service) const
expected< voidtouchIndexFile (const RepoInfo &info)
expected< voidinit_knownServices ()
expected< voidinit_knownRepositories ()
Protected Member Functions inherited from zyppng::Base
 Base (BasePrivate &dd)

Protected Attributes

ContextRefType _zyppContext
RepoManagerOptions _options
RepoSet _reposX
ServiceSet _services
PluginRepoverification _pluginRepoverification
zypp::DefaultIntegral< bool, false > _reposDirty
zypp::DefaultIntegral< bool, false > _poolIdsReserved
int _poolSnapshotState = 0
 0 unknown, 1 mapped, -1 unusable
Protected Attributes inherited from zyppng::Base
std::unique_ptr< BasePrivated_ptr

Private Member Functions

 ZYPP_ADD_PRIVATE_CONSTR_HELPER ()
void reservePoolIds ()
 Peek at the solv files of all enabled repos and size the pool's id hashes once for their sum, before the first repo is loaded.
std::string poolSnapshotCookie () const
 Cookie describing the enabled repos and their solv caches, empty if the pool snapshot cannot be used.
bool tryLoadPoolSnapshot ()
 Try to map the pool snapshot on the first loadFromCache, and arm writing a fresh one after a normal load.

Detailed Description

The RepoManager class Provides knowledge and methods to maintain repo settings and metadata for a given context.

Depending on the ContextRef the convenienve functions execute the workflows in a sync or async way. In sync mode libzypp's legacy reports are executed. Otherwise progress report is only provided via the ProgressObserver classes.

Definition at line 240 of file repomanager.h.

Member Typedef Documentation

◆ ContextRefType

Definition at line 245 of file repomanager.h.

◆ ContextType

Definition at line 246 of file repomanager.h.

◆ RawMetadataRefreshPolicy

◆ CacheBuildPolicy

◆ RefreshCheckStatus

◆ RefreshServiceBit

Flags for tuning RefreshService.

Definition at line 255 of file repomanager.h.

◆ RefreshServiceOptions

◆ ServiceSet

ServiceInfo typedefs.

Definition at line 284 of file repomanager.h.

◆ ServiceConstIterator

using zyppng::RepoManager::ServiceConstIterator = ServiceSet::const_iterator

Definition at line 285 of file repomanager.h.

◆ ServiceSizeType

using zyppng::RepoManager::ServiceSizeType = ServiceSet::size_type

Definition at line 286 of file repomanager.h.

◆ RepoSet

RepoInfo typedefs.

Definition at line 289 of file repomanager.h.

◆ RepoConstIterator

using zyppng::RepoManager::RepoConstIterator = RepoSet::const_iterator

Definition at line 290 of file repomanager.h.

◆ RepoSizeType

using zyppng::RepoManager::RepoSizeType = RepoSet::size_type

Definition at line 291 of file repomanager.h.

Constructor & Destructor Documentation

◆ ~RepoManager()

zyppng::RepoManager::~RepoManager ( )
virtual

Definition at line 251 of file repomanager.cc.

Member Function Documentation

◆ ZYPP_ADD_PRIVATE_CONSTR_HELPER()

zyppng::RepoManager::ZYPP_ADD_PRIVATE_CONSTR_HELPER ( )
private

◆ ZYPP_DECL_PRIVATE_CONSTR_ARGS()

zyppng::RepoManager::ZYPP_DECL_PRIVATE_CONSTR_ARGS ( RepoManager ,
ContextRef zyppCtx,
RepoManagerOptions opt )

◆ create()

template<typename ... Args>
expected< std::shared_ptr< RepoManager > > zyppng::RepoManager::create ( Args &&... args)
inlinestatic

Definition at line 262 of file repomanager.h.

◆ initialize()

expected< void > zyppng::RepoManager::initialize ( )

Definition at line 296 of file repomanager.cc.

◆ zyppContext()

ContextRefType zyppng::RepoManager::zyppContext ( ) const
inline

Definition at line 300 of file repomanager.h.

◆ options()

const RepoManagerOptions & zyppng::RepoManager::options ( ) const

Definition at line 305 of file repomanager.cc.

◆ repoEmpty()

bool zyppng::RepoManager::repoEmpty ( ) const
inline

Definition at line 306 of file repomanager.h.

◆ repoSize()

RepoSizeType zyppng::RepoManager::repoSize ( ) const
inline

Definition at line 307 of file repomanager.h.

◆ repoBegin()

RepoConstIterator zyppng::RepoManager::repoBegin ( ) const
inline

Definition at line 308 of file repomanager.h.

◆ repoEnd()

RepoConstIterator zyppng::RepoManager::repoEnd ( ) const
inline

Definition at line 309 of file repomanager.h.

◆ hasRepo()

bool zyppng::RepoManager::hasRepo ( const std::string & alias) const
inline

Definition at line 311 of file repomanager.h.

◆ getRepo()

RepoInfo zyppng::RepoManager::getRepo ( const std::string & alias) const
inline

Definition at line 314 of file repomanager.h.

◆ metadataPath()

expected< zypp::Pathname > zyppng::RepoManager::metadataPath ( const RepoInfo & info) const
inline

Definition at line 321 of file repomanager.h.

◆ packagesPath()

expected< zypp::Pathname > zyppng::RepoManager::packagesPath ( const RepoInfo & info) const
inline

Definition at line 324 of file repomanager.h.

◆ metadataStatus() [1/2]

expected< RepoStatus > zyppng::RepoManager::metadataStatus ( const RepoInfo & info,
const RepoManagerOptions & options )
static

Definition at line 311 of file repomanager.cc.

◆ metadataStatus() [2/2]

expected< RepoStatus > zyppng::RepoManager::metadataStatus ( const RepoInfo & info) const

Definition at line 375 of file repomanager.cc.

◆ cleanMetadata()

expected< void > zyppng::RepoManager::cleanMetadata ( const RepoInfo & info,
ProgressObserverRef myProgress = nullptr )

Definition at line 381 of file repomanager.cc.

◆ cleanPackages()

expected< void > zyppng::RepoManager::cleanPackages ( const RepoInfo & info,
ProgressObserverRef myProgress = nullptr,
bool isAutoClean = false )

Definition at line 400 of file repomanager.cc.

◆ probeCache()

zypp::repo::RepoType zyppng::RepoManager::probeCache ( const zypp::Pathname & path_r)
static

Probe Metadata in a local cache directory.

Note
Metadata in local cache directories must not be probed using probe as a cache path must not be rewritten (bnc#946129)

Definition at line 427 of file repomanager.cc.

◆ cleanCacheDirGarbage()

expected< void > zyppng::RepoManager::cleanCacheDirGarbage ( ProgressObserverRef myProgress = nullptr)

Definition at line 445 of file repomanager.cc.

◆ cleanCache()

expected< void > zyppng::RepoManager::cleanCache ( const RepoInfo & info,
ProgressObserverRef myProgress = nullptr )

Definition at line 502 of file repomanager.cc.

◆ isCached()

expected< bool > zyppng::RepoManager::isCached ( const RepoInfo & info) const
inline

Definition at line 340 of file repomanager.h.

◆ cacheStatus() [1/2]

expected< RepoStatus > zyppng::RepoManager::cacheStatus ( const RepoInfo & info) const
inline

Definition at line 347 of file repomanager.h.

◆ cacheStatus() [2/2]

expected< RepoStatus > zyppng::RepoManager::cacheStatus ( const RepoInfo & info,
const RepoManagerOptions & options )
inlinestatic

Definition at line 350 of file repomanager.h.

◆ loadFromCache()

expected< void > zyppng::RepoManager::loadFromCache ( const RepoInfo & info,
ProgressObserverRef myProgress = nullptr )

Definition at line 637 of file repomanager.cc.

◆ reservePoolIds()

void zyppng::RepoManager::reservePoolIds ( )
private

Peek at the solv files of all enabled repos and size the pool's id hashes once for their sum, before the first repo is loaded.

Definition at line 603 of file repomanager.cc.

◆ poolSnapshotCookie()

std::string zyppng::RepoManager::poolSnapshotCookie ( ) const
private

Cookie describing the enabled repos and their solv caches, empty if the pool snapshot cannot be used.

Definition at line 531 of file repomanager.cc.

◆ tryLoadPoolSnapshot()

bool zyppng::RepoManager::tryLoadPoolSnapshot ( )
private

Try to map the pool snapshot on the first loadFromCache, and arm writing a fresh one after a normal load.

Definition at line 579 of file repomanager.cc.

◆ addProbedRepository()

expected< RepoInfo > zyppng::RepoManager::addProbedRepository ( RepoInfo info,
zypp::repo::RepoType probedType )

Definition at line 704 of file repomanager.cc.

◆ removeRepository()

expected< void > zyppng::RepoManager::removeRepository ( const RepoInfo & info,
ProgressObserverRef myProgress = nullptr )

Definition at line 744 of file repomanager.cc.

◆ modifyRepository()

expected< RepoInfo > zyppng::RepoManager::modifyRepository ( const std::string & alias,
const RepoInfo & newinfo_r,
ProgressObserverRef myProgress = nullptr )

Definition at line 833 of file repomanager.cc.

◆ getRepositoryInfo() [1/2]

expected< RepoInfo > zyppng::RepoManager::getRepositoryInfo ( const std::string & alias)

Definition at line 922 of file repomanager.cc.

◆ getRepositoryInfo() [2/2]

expected< RepoInfo > zyppng::RepoManager::getRepositoryInfo ( const zypp::Url & url,
const zypp::url::ViewOption & urlview )

Definition at line 938 of file repomanager.cc.

◆ checkIfToRefreshMetadata() [1/2]

expected< typename RepoManager::RefreshCheckStatus > zyppng::RepoManager::checkIfToRefreshMetadata ( const RepoInfo & info,
const zypp::MirroredOrigin & origin,
RawMetadataRefreshPolicy policy )

Definition at line 960 of file repomanager.cc.

◆ checkIfToRefreshMetadata() [2/2]

expected< RefreshCheckStatus > zyppng::RepoManager::checkIfToRefreshMetadata ( const RepoInfo & info,
const zypp::Url & url,
RawMetadataRefreshPolicy policy )
inline

Definition at line 387 of file repomanager.h.

◆ refreshMetadata() [1/2]

expected< void > zyppng::RepoManager::refreshMetadata ( const RepoInfo & info,
RawMetadataRefreshPolicy policy,
ProgressObserverRef myProgress = nullptr )

Refresh local raw cache.

Will try to download the metadata

In case of failure the metadata remains as it was before.

The returned expected can contain one of the following errors: repo::RepoNoUrlException if no urls are available. repo::RepoNoAliasException if can't figure an alias repo::RepoUnknownTypeException if the metadata is unknown repo::RepoException if the repository is invalid (no valid metadata found at any of baseurls)

Todo
Currently no progress is generated, especially for the async code We might need to change this

Definition at line 976 of file repomanager.cc.

◆ refreshMetadata() [2/2]

std::vector< std::pair< RepoInfo, expected< void > > > zyppng::RepoManager::refreshMetadata ( std::vector< RepoInfo > infos,
RawMetadataRefreshPolicy policy,
ProgressObserverRef myProgress = nullptr )

Definition at line 1021 of file repomanager.cc.

◆ probe()

expected< zypp::repo::RepoType > zyppng::RepoManager::probe ( const zypp::MirroredOrigin & origin,
const zypp::Pathname & path = zypp::Pathname() ) const

Probe the metadata type of a repository located at url.

Urls here may be rewritten by MediaSetAccess or zyppng::Provide to reflect the correct media number.

Note
Metadata in local cache directories must be probed using probeCache as a cache path must not be rewritten (bnc#946129)

Definition at line 1097 of file repomanager.cc.

◆ buildCache()

expected< void > zyppng::RepoManager::buildCache ( const RepoInfo & info,
CacheBuildPolicy policy,
ProgressObserverRef myProgress = nullptr )

Definition at line 1113 of file repomanager.cc.

◆ addRepository()

expected< RepoInfo > zyppng::RepoManager::addRepository ( const RepoInfo & info,
const ProgressObserverRef myProgress = nullptr,
const zypp::TriBool & forcedProbe = zypp::indeterminate )

Adds the repository in info and returns the updated RepoInfo object.

Definition at line 1126 of file repomanager.cc.

◆ addRepositories()

expected< void > zyppng::RepoManager::addRepositories ( const zypp::Url & url,
ProgressObserverRef myProgress = nullptr )

Definition at line 1132 of file repomanager.cc.

◆ serviceEmpty()

bool zyppng::RepoManager::serviceEmpty ( ) const
inline

Definition at line 424 of file repomanager.h.

◆ serviceSize()

ServiceSizeType zyppng::RepoManager::serviceSize ( ) const
inline

Definition at line 425 of file repomanager.h.

◆ serviceBegin()

ServiceConstIterator zyppng::RepoManager::serviceBegin ( ) const
inline

Definition at line 426 of file repomanager.h.

◆ serviceEnd()

ServiceConstIterator zyppng::RepoManager::serviceEnd ( ) const
inline

Definition at line 427 of file repomanager.h.

◆ hasService()

bool zyppng::RepoManager::hasService ( const std::string & alias) const
inline

Definition at line 429 of file repomanager.h.

◆ getService()

ServiceInfo zyppng::RepoManager::getService ( const std::string & alias) const
inline

Definition at line 432 of file repomanager.h.

◆ probeService()

expected< zypp::repo::ServiceType > zyppng::RepoManager::probeService ( const zypp::Url & url) const

Definition at line 1139 of file repomanager.cc.

◆ addService() [1/2]

expected< void > zyppng::RepoManager::addService ( const ServiceInfo & service)

Definition at line 1145 of file repomanager.cc.

◆ addService() [2/2]

expected< void > zyppng::RepoManager::addService ( const std::string & alias,
const zypp::Url & url )
inline

Definition at line 443 of file repomanager.h.

◆ removeService() [1/2]

expected< void > zyppng::RepoManager::removeService ( const std::string & alias)

Definition at line 1205 of file repomanager.cc.

◆ removeService() [2/2]

expected< void > zyppng::RepoManager::removeService ( const ServiceInfo & service)
inline

Definition at line 447 of file repomanager.h.

◆ refreshService() [1/2]

expected< void > zyppng::RepoManager::refreshService ( const std::string & alias,
const RefreshServiceOptions & options_r )

Definition at line 1174 of file repomanager.cc.

◆ refreshService() [2/2]

expected< void > zyppng::RepoManager::refreshService ( const ServiceInfo & service,
const RefreshServiceOptions & options_r )
inline

Definition at line 451 of file repomanager.h.

◆ refreshServices()

expected< void > zyppng::RepoManager::refreshServices ( const RefreshServiceOptions & options_r)
Todo
ignore ServicePluginInformalException in calling code

Definition at line 1183 of file repomanager.cc.

◆ modifyService()

expected< void > zyppng::RepoManager::modifyService ( const std::string & oldAlias,
const ServiceInfo & newService )
Todo
refresh the service automatically if url is changed?

Definition at line 1267 of file repomanager.cc.

◆ touchIndexFile() [1/2]

expected< void > zyppng::RepoManager::touchIndexFile ( const RepoInfo & info,
const RepoManagerOptions & options )
static

Definition at line 1407 of file repomanager.cc.

◆ setCacheStatus()

expected< void > zyppng::RepoManager::setCacheStatus ( const RepoInfo & info,
const RepoStatus & status )
inline

Definition at line 460 of file repomanager.h.

◆ refreshGeoIp()

expected< void > zyppng::RepoManager::refreshGeoIp ( const RepoInfo::url_set & urls)

Checks for any of the given urls if there is no geoip data available, caches the results in the metadata cache for 24hrs. The given urls need to be configured as valid geoIP targets ( usually download.opensuse.org )

Definition at line 1448 of file repomanager.cc.

◆ getRepositoriesInService()

template<typename OutputIterator>
void zyppng::RepoManager::getRepositoriesInService ( const std::string & alias,
OutputIterator out ) const
inline

Definition at line 482 of file repomanager.h.

◆ generateNonExistingName()

zypp::Pathname zyppng::RepoManager::generateNonExistingName ( const zypp::Pathname & dir,
const std::string & basefilename ) const

Generate a non existing filename in a directory, using a base name.

For example if a directory contains 3 files

|– bar |– foo `– moo

If you try to generate a unique filename for this directory, based on "ruu" you will get "ruu", but if you use the base "foo" you will get "foo_1"

Parameters
dirDirectory where the file needs to be unique
basefilenamestring to base the filename on.

Definition at line 1393 of file repomanager.cc.

◆ generateFilename() [1/2]

std::string zyppng::RepoManager::generateFilename ( const RepoInfo & info) const
inline

Definition at line 492 of file repomanager.h.

◆ generateFilename() [2/2]

std::string zyppng::RepoManager::generateFilename ( const ServiceInfo & info) const
inline

Definition at line 495 of file repomanager.h.

◆ saveService()

expected< void > zyppng::RepoManager::saveService ( ServiceInfo & service) const
protected

Definition at line 1350 of file repomanager.cc.

◆ touchIndexFile() [2/2]

expected< void > zyppng::RepoManager::touchIndexFile ( const RepoInfo & info)
protected

Definition at line 1453 of file repomanager.cc.

◆ init_knownServices()

expected< void > zyppng::RepoManager::init_knownServices ( )
protected

Definition at line 1459 of file repomanager.cc.

◆ init_knownRepositories()

expected< void > zyppng::RepoManager::init_knownRepositories ( )
protected

Definition at line 1533 of file repomanager.cc.

◆ repos()

const RepoSet & zyppng::RepoManager::repos ( ) const
inline

Definition at line 508 of file repomanager.h.

◆ reposManip()

RepoSet & zyppng::RepoManager::reposManip ( )
inline

Definition at line 509 of file repomanager.h.

◆ pluginRepoverification()

PluginRepoverification zyppng::RepoManager::pluginRepoverification ( ) const
inline

Definition at line 512 of file repomanager.h.

Member Data Documentation

◆ _zyppContext

ContextRefType zyppng::RepoManager::_zyppContext
protected

Definition at line 516 of file repomanager.h.

◆ _options

RepoManagerOptions zyppng::RepoManager::_options
protected

Definition at line 517 of file repomanager.h.

◆ _reposX

RepoSet zyppng::RepoManager::_reposX
protected

Definition at line 518 of file repomanager.h.

◆ _services

ServiceSet zyppng::RepoManager::_services
protected

Definition at line 519 of file repomanager.h.

◆ _pluginRepoverification

PluginRepoverification zyppng::RepoManager::_pluginRepoverification
protected

Definition at line 520 of file repomanager.h.

◆ _reposDirty

zypp::DefaultIntegral<bool,false> zyppng::RepoManager::_reposDirty
protected

Definition at line 521 of file repomanager.h.

◆ _poolIdsReserved

zypp::DefaultIntegral<bool,false> zyppng::RepoManager::_poolIdsReserved
protected

Definition at line 522 of file repomanager.h.

◆ _poolSnapshotState

int zyppng::RepoManager::_poolSnapshotState = 0
protected

0 unknown, 1 mapped, -1 unusable

Definition at line 523 of file repomanager.h.


The documentation for this class was generated from the following files: