libzypp: zypp/RepoManager.h Source File

libzypp 17.25.10

RepoManager.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_REPOMANAGER_H
13 #define ZYPP_REPOMANAGER_H
14
15 #include <iosfwd>
16 #include <list>
17
18 #include <zypp/base/PtrTypes.h>
19 #include <zypp/base/Iterator.h>
20 #include <zypp/base/Flags.h>
21
22 #include <zypp/Pathname.h>
23 #include <zypp/ZConfig.h>
24 #include <zypp/RepoInfo.h>
25 #include <zypp/repo/RepoException.h>
26 #include <zypp/repo/RepoType.h>
27 #include <zypp/repo/ServiceType.h>
28 #include <zypp/ServiceInfo.h>
29 #include <zypp/RepoStatus.h>
30 #include <zypp/ProgressData.h>
31
33 namespace zypp
34 {
35
47 std::list<RepoInfo> readRepoFile(const Url & repo_file);
48
53 struct RepoManagerOptions
54 {
66 RepoManagerOptions( const Pathname & root_r = Pathname() );
67
77 static RepoManagerOptions makeTestSetup( const Pathname & root_r );
78
79 Pathname repoCachePath;
80 Pathname repoRawCachePath;
81 Pathname repoSolvCachePath;
82 Pathname repoPackagesCachePath;
83 Pathname knownReposPath;
84 Pathname knownServicesPath;
85 Pathname pluginsPath;
86 bool probe;
93 std::string servicesTargetDistro;
94
96 Pathname rootDir;
97 };
98
99
100
105 class RepoManager
106 {
107 friend std::ostream & operator<<( std::ostream & str, const RepoManager & obj );
108
109 public:
111 struct Impl;
112
114 typedef std::set<ServiceInfo> ServiceSet;
115 typedef ServiceSet::const_iterator ServiceConstIterator;
116 typedef ServiceSet::size_type ServiceSizeType;
117
119 typedef std::set<RepoInfo> RepoSet;
120 typedef RepoSet::const_iterator RepoConstIterator;
121 typedef RepoSet::size_type RepoSizeType;
122
123 public:
124 RepoManager( const RepoManagerOptions &options = RepoManagerOptions() );
126 ~RepoManager();
127
128 enum RawMetadataRefreshPolicy
129 {
130 RefreshIfNeeded,
131 RefreshForced,
132 RefreshIfNeededIgnoreDelay
133 };
134
135 enum CacheBuildPolicy
136 {
137 BuildIfNeeded,
138 BuildForced
139 };
140
142 enum RefreshServiceBit
143 {
144 RefreshService_restoreStatus = (1<<0),
145 RefreshService_forceRefresh = (1<<1),
146 };
147 ZYPP_DECLARE_FLAGS(RefreshServiceFlags,RefreshServiceBit);
148
150 typedef RefreshServiceFlags RefreshServiceOptions;
151
152
160 bool repoEmpty() const;
161 RepoSizeType repoSize() const;
162 RepoConstIterator repoBegin() const;
163 RepoConstIterator repoEnd() const;
164 Iterable<RepoConstIterator> repos() const;
165
167 std::list<RepoInfo> knownRepositories() const
168 { return std::list<RepoInfo>(repoBegin(),repoEnd()); }
169
171 RepoInfo getRepo( const std::string & alias ) const;
173 RepoInfo getRepo( const RepoInfo & info_r ) const
174 { return getRepo( info_r.alias() ); }
175
177 bool hasRepo( const std::string & alias ) const;
179 bool hasRepo( const RepoInfo & info_r ) const
180 { return hasRepo( info_r.alias() ); }
181
185 static std::string makeStupidAlias( const Url & url_r = Url() );
187
191 RepoStatus metadataStatus( const RepoInfo &info ) const;
192
196 enum RefreshCheckStatus {
197 REFRESH_NEEDED,
198 REPO_UP_TO_DATE,
199 REPO_CHECK_DELAYED
200 };
201
256 RefreshCheckStatus checkIfToRefreshMetadata( const RepoInfo &info,
257 const Url &url,
258 RawMetadataRefreshPolicy policy = RefreshIfNeeded);
259
270 Pathname metadataPath( const RepoInfo &info ) const;
271
272
283 Pathname packagesPath( const RepoInfo &info ) const;
284
285
300 void refreshMetadata( const RepoInfo &info,
301 RawMetadataRefreshPolicy policy = RefreshIfNeeded,
302 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
303
312 void cleanMetadata( const RepoInfo &info,
313 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
314
323 void cleanPackages( const RepoInfo &info,
324 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
325
329 RepoStatus cacheStatus( const RepoInfo &info ) const;
330
349 void buildCache( const RepoInfo &info,
350 CacheBuildPolicy policy = BuildIfNeeded,
351 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
352
365 void cleanCache( const RepoInfo &info,
366 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
367
373 bool isCached( const RepoInfo &info ) const;
374
375
385 void loadFromCache( const RepoInfo &info,
386 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
387
395 void cleanCacheDirGarbage( const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
396
404 repo::RepoType probe( const Url & url, const Pathname & path ) const;
408 repo::RepoType probe( const Url & url ) const;
409
410
425 void addRepository( const RepoInfo &info,
426 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
427
440 void addRepositories( const Url &url,
441 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
447 void removeRepository( const RepoInfo & info,
448 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
449
459 void modifyRepository( const std::string &alias,
460 const RepoInfo & newinfo,
461 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
463 void modifyRepository( const RepoInfo & newinfo,
464 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() )
465 { modifyRepository( newinfo.alias(), newinfo, progressrcv ); }
466
480 RepoInfo getRepositoryInfo( const std::string &alias,
481 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
482
502 RepoInfo getRepositoryInfo( const Url & url,
503 const url::ViewOption & urlview = url::ViewOption::DEFAULTS,
504 const ProgressData::ReceiverFnc & progressrcv = ProgressData::ReceiverFnc() );
505
506
519 bool serviceEmpty() const;
520
526 ServiceSizeType serviceSize() const;
527
533 ServiceConstIterator serviceBegin() const;
534
539 ServiceConstIterator serviceEnd() const;
540
542 Iterable<ServiceConstIterator> services() const;
543
545 std::list<ServiceInfo> knownServices() const
546 { return std::list<ServiceInfo>(serviceBegin(),serviceEnd()); }
547
554 ServiceInfo getService( const std::string & alias ) const;
555
557 bool hasService( const std::string & alias ) const;
559
563 repo::ServiceType probeService( const Url &url ) const;
564
573 void addService( const std::string & alias, const Url& url );
574
582 void addService( const ServiceInfo & service );
583
592 void removeService( const std::string & alias );
594 void removeService( const ServiceInfo & service );
595
596
602 void refreshServices( const RefreshServiceOptions & options_r = RefreshServiceOptions() );
603
612 void refreshService( const std::string & alias, const RefreshServiceOptions & options_r = RefreshServiceOptions() );
614 void refreshService( const ServiceInfo & service, const RefreshServiceOptions & options_r = RefreshServiceOptions() );
615
632 void modifyService( const std::string & oldAlias, const ServiceInfo & service );
634 void modifyService( const ServiceInfo & service )
635 { modifyService( service.alias(), service ); }
636
637 private:
641 struct MatchServiceAlias
642 {
643 public:
644 MatchServiceAlias( const std::string & alias_ ) : alias(alias_) {}
645 bool operator()( const RepoInfo & info ) const
646 { return info.service() == alias; }
647 private:
648 std::string alias;
649 };
650
651 public:
652
685 template<typename OutputIterator>
686 void getRepositoriesInService( const std::string & alias,
687 OutputIterator out ) const
688 {
689 MatchServiceAlias filter(alias);
690
691 std::copy( boost::make_filter_iterator( filter, repoBegin(), repoEnd() ),
692 boost::make_filter_iterator( filter, repoEnd(), repoEnd() ),
693 out);
694 }
695
696 private:
698 RWCOW_pointer<Impl> _pimpl;
699 };
700 ZYPP_DECLARE_OPERATORS_FOR_FLAGS(RepoManager::RefreshServiceFlags);
702
704 std::ostream & operator<<( std::ostream & str, const RepoManager & obj );
705
707 inline Iterable<RepoManager::RepoConstIterator> RepoManager::repos() const
708 { return makeIterable( repoBegin(), repoEnd() ); }
709
711 inline Iterable<RepoManager::ServiceConstIterator> RepoManager::services() const
712 { return makeIterable( serviceBegin(), serviceEnd() ); }
713
715 } // namespace zypp
717 #endif // ZYPP2_REPOMANAGER_H
Flags.h
Iterator.h
url
Url url
Definition: MediaCurl.cc:66
Pathname.h
ProgressData.h
PtrTypes.h
RepoException.h
RepoInfo.h
RepoStatus.h
RepoType.h
ServiceInfo.h
ServiceType.h
ZConfig.h
zypp::Iterable
Definition: Iterable.h:37
zypp::ProgressData::ReceiverFnc
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Definition: ProgressData.h:139
zypp::RepoInfo
What is known about a repository.
Definition: RepoInfo.h:72
zypp::RepoInfo::service
std::string service() const
Gets name of the service to which this repository belongs or empty string if it has been added manual...
Definition: RepoInfo.cc:725
zypp::RepoManager
creates and provides information about known sources.
Definition: RepoManager.h:106
zypp::RepoManager::hasRepo
bool hasRepo(const std::string &alias) const
Return whether there is a known repository for alias.
Definition: RepoManager.cc:2565
zypp::RepoManager::ServiceConstIterator
ServiceSet::const_iterator ServiceConstIterator
Definition: RepoManager.h:115
zypp::RepoManager::cleanCacheDirGarbage
void cleanCacheDirGarbage(const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Remove any subdirectories of cache directories which no longer belong to any of known repositories.
Definition: RepoManager.cc:2624
zypp::RepoManager::cleanMetadata
void cleanMetadata(const RepoInfo &info, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Clean local metadata.
Definition: RepoManager.cc:2603
zypp::RepoManager::~RepoManager
~RepoManager()
Dtor.
Definition: RepoManager.cc:2547
zypp::RepoManager::serviceEmpty
bool serviceEmpty() const
Gets true if no service is in RepoManager (so no one in specified location)
Definition: RepoManager.cc:2651
zypp::RepoManager::hasService
bool hasService(const std::string &alias) const
Return whether there is a known service for alias.
Definition: RepoManager.cc:2666
zypp::RepoManager::RefreshCheckStatus
RefreshCheckStatus
Possibly return state of checkIfRefreshMEtadata function.
Definition: RepoManager.h:196
zypp::RepoManager::REFRESH_NEEDED
@ REFRESH_NEEDED
refresh is needed
Definition: RepoManager.h:197
zypp::RepoManager::REPO_UP_TO_DATE
@ REPO_UP_TO_DATE
repository not changed
Definition: RepoManager.h:198
zypp::RepoManager::REPO_CHECK_DELAYED
@ REPO_CHECK_DELAYED
refresh is delayed due to settings
Definition: RepoManager.h:199
zypp::RepoManager::getRepo
RepoInfo getRepo(const RepoInfo &info_r) const
Definition: RepoManager.h:173
zypp::RepoManager::RepoConstIterator
RepoSet::const_iterator RepoConstIterator
Definition: RepoManager.h:120
zypp::RepoManager::addService
void addService(const std::string &alias, const Url &url)
Adds new service by it's alias and url.
Definition: RepoManager.cc:2672
zypp::RepoManager::isCached
bool isCached(const RepoInfo &info) const
Whether a repository exists in cache.
Definition: RepoManager.cc:2618
zypp::RepoManager::removeService
void removeService(const std::string &alias)
Removes service specified by its name.
Definition: RepoManager.cc:2678
zypp::RepoManager::hasRepo
bool hasRepo(const RepoInfo &info_r) const
Definition: RepoManager.h:179
zypp::RepoManager::RawMetadataRefreshPolicy
RawMetadataRefreshPolicy
Definition: RepoManager.h:129
zypp::RepoManager::RefreshIfNeeded
@ RefreshIfNeeded
Definition: RepoManager.h:130
zypp::RepoManager::RefreshForced
@ RefreshForced
Definition: RepoManager.h:131
zypp::RepoManager::RefreshIfNeededIgnoreDelay
@ RefreshIfNeededIgnoreDelay
Definition: RepoManager.h:132
zypp::RepoManager::RepoManager
RepoManager(const RepoManagerOptions &options=RepoManagerOptions())
Definition: RepoManager.cc:2543
zypp::RepoManager::getRepo
RepoInfo getRepo(const std::string &alias) const
Find RepoInfo by alias or return RepoInfo::noRepo.
Definition: RepoManager.cc:2562
zypp::RepoManager::probeService
repo::ServiceType probeService(const Url &url) const
Probe the type or the service.
Definition: RepoManager.cc:2669
zypp::RepoManager::knownServices
std::list< ServiceInfo > knownServices() const
List of known services.
Definition: RepoManager.h:545
zypp::RepoManager::_pimpl
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
Definition: RepoManager.h:698
zypp::RepoManager::cleanCache
void cleanCache(const RepoInfo &info, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
clean local cache
Definition: RepoManager.cc:2615
zypp::RepoManager::operator<<
friend std::ostream & operator<<(std::ostream &str, const RepoManager &obj)
Definition: RepoManager.cc:2698
zypp::RepoManager::refreshServices
void refreshServices(const RefreshServiceOptions &options_r=RefreshServiceOptions())
Refreshes all enabled services.
Definition: RepoManager.cc:2684
zypp::RepoManager::addRepository
void addRepository(const RepoInfo &info, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Adds a repository to the list of known repositories.
Definition: RepoManager.cc:2633
zypp::RepoManager::repoEmpty
bool repoEmpty() const
Definition: RepoManager.cc:2550
zypp::RepoManager::metadataPath
Pathname metadataPath(const RepoInfo &info) const
Path where the metadata is downloaded and kept.
Definition: RepoManager.cc:2594
zypp::RepoManager::ServiceSizeType
ServiceSet::size_type ServiceSizeType
Definition: RepoManager.h:116
zypp::RepoManager::RepoSet
std::set< RepoInfo > RepoSet
RepoInfo typedefs.
Definition: RepoManager.h:119
zypp::RepoManager::packagesPath
Pathname packagesPath(const RepoInfo &info) const
Path where the rpm packages are downloaded and kept.
Definition: RepoManager.cc:2597
zypp::RepoManager::cacheStatus
RepoStatus cacheStatus(const RepoInfo &info) const
Status of metadata cache.
Definition: RepoManager.cc:2609
zypp::RepoManager::addRepositories
void addRepositories(const Url &url, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Adds repositores from a repo file to the list of known repositories.
Definition: RepoManager.cc:2636
zypp::RepoManager::refreshMetadata
void refreshMetadata(const RepoInfo &info, RawMetadataRefreshPolicy policy=RefreshIfNeeded, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Refresh local raw cache.
Definition: RepoManager.cc:2600
zypp::RepoManager::refreshService
void refreshService(const std::string &alias, const RefreshServiceOptions &options_r=RefreshServiceOptions())
Refresh specific service.
Definition: RepoManager.cc:2687
zypp::RepoManager::serviceEnd
ServiceConstIterator serviceEnd() const
Iterator to place behind last service in internal storage.
Definition: RepoManager.cc:2660
zypp::RepoManager::RefreshServiceBit
RefreshServiceBit
Flags for tuning RefreshService.
Definition: RepoManager.h:143
zypp::RepoManager::RefreshService_forceRefresh
@ RefreshService_forceRefresh
Force refresh even if TTL is not reached.
Definition: RepoManager.h:145
zypp::RepoManager::RefreshService_restoreStatus
@ RefreshService_restoreStatus
Force restoring repo enabled/disabled status.
Definition: RepoManager.h:144
zypp::RepoManager::serviceBegin
ServiceConstIterator serviceBegin() const
Iterator to first service in internal storage.
Definition: RepoManager.cc:2657
zypp::RepoManager::modifyService
void modifyService(const ServiceInfo &service)
Definition: RepoManager.h:634
zypp::RepoManager::repoSize
RepoSizeType repoSize() const
Definition: RepoManager.cc:2553
zypp::RepoManager::modifyRepository
void modifyRepository(const std::string &alias, const RepoInfo &newinfo, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Modify repository attributes.
Definition: RepoManager.cc:2642
zypp::RepoManager::services
Iterable< ServiceConstIterator > services() const
Iterate the known services.
Definition: RepoManager.h:711
zypp::RepoManager::removeRepository
void removeRepository(const RepoInfo &info, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Remove the best matching repository from known repos list.
Definition: RepoManager.cc:2639
zypp::RepoManager::modifyRepository
void modifyRepository(const RepoInfo &newinfo, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Definition: RepoManager.h:463
zypp::RepoManager::getRepositoryInfo
RepoInfo getRepositoryInfo(const std::string &alias, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Find a matching repository info.
Definition: RepoManager.cc:2645
zypp::RepoManager::serviceSize
ServiceSizeType serviceSize() const
Gets count of service in RepoManager (in specified location)
Definition: RepoManager.cc:2654
zypp::RepoManager::ZYPP_DECLARE_FLAGS
ZYPP_DECLARE_FLAGS(RefreshServiceFlags, RefreshServiceBit)
zypp::RepoManager::RepoSizeType
RepoSet::size_type RepoSizeType
Definition: RepoManager.h:121
zypp::RepoManager::knownRepositories
std::list< RepoInfo > knownRepositories() const
List of known repositories.
Definition: RepoManager.h:167
zypp::RepoManager::CacheBuildPolicy
CacheBuildPolicy
Definition: RepoManager.h:136
zypp::RepoManager::BuildForced
@ BuildForced
Definition: RepoManager.h:138
zypp::RepoManager::BuildIfNeeded
@ BuildIfNeeded
Definition: RepoManager.h:137
zypp::RepoManager::getService
ServiceInfo getService(const std::string &alias) const
Finds ServiceInfo by alias or return ServiceInfo::noService.
Definition: RepoManager.cc:2663
zypp::RepoManager::checkIfToRefreshMetadata
RefreshCheckStatus checkIfToRefreshMetadata(const RepoInfo &info, const Url &url, RawMetadataRefreshPolicy policy=RefreshIfNeeded)
Checks whether to refresh metadata for specified repository and url.
Definition: RepoManager.cc:2591
zypp::RepoManager::repoBegin
RepoConstIterator repoBegin() const
Definition: RepoManager.cc:2556
zypp::RepoManager::repos
Iterable< RepoConstIterator > repos() const
Iterate the known repositories.
Definition: RepoManager.h:707
zypp::RepoManager::buildCache
void buildCache(const RepoInfo &info, CacheBuildPolicy policy=BuildIfNeeded, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Refresh local cache.
Definition: RepoManager.cc:2612
zypp::RepoManager::RefreshServiceOptions
RefreshServiceFlags RefreshServiceOptions
Options tuning RefreshService.
Definition: RepoManager.h:150
zypp::RepoManager::getRepositoriesInService
void getRepositoriesInService(const std::string &alias, OutputIterator out) const
fill to output iterator repositories in service name.
Definition: RepoManager.h:686
zypp::RepoManager::loadFromCache
void loadFromCache(const RepoInfo &info, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Load resolvables into the pool.
Definition: RepoManager.cc:2621
zypp::RepoManager::ServiceSet
std::set< ServiceInfo > ServiceSet
ServiceInfo typedefs.
Definition: RepoManager.h:111
zypp::RepoManager::cleanPackages
void cleanPackages(const RepoInfo &info, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Clean local package cache.
Definition: RepoManager.cc:2606
zypp::RepoManager::repoEnd
RepoConstIterator repoEnd() const
Definition: RepoManager.cc:2559
zypp::RepoManager::metadataStatus
RepoStatus metadataStatus(const RepoInfo &info) const
Status of local metadata.
Definition: RepoManager.cc:2588
zypp::RepoManager::modifyService
void modifyService(const std::string &oldAlias, const ServiceInfo &service)
Modifies service file (rewrites it with new values) and underlying repositories if needed.
Definition: RepoManager.cc:2693
zypp::RepoManager::makeStupidAlias
static std::string makeStupidAlias(const Url &url_r=Url())
Some stupid string but suitable as alias for your url if nothing better is available.
Definition: RepoManager.cc:2568
zypp::RepoManager::probe
repo::RepoType probe(const Url &url, const Pathname &path) const
Probe repo metadata type.
Definition: RepoManager.cc:2627
zypp::RepoStatus
Track changing files or directories.
Definition: RepoStatus.h:41
zypp::ServiceInfo
Service data.
Definition: ServiceInfo.h:37
zypp::Url
Url manipulation class.
Definition: Url.h:92
zypp::filesystem::Pathname
Pathname.
Definition: Pathname.h:45
zypp::repo::RepoInfoBase::alias
std::string alias() const
unique identifier for this source.
Definition: RepoInfoBase.cc:111
str
String related utilities and Regular expression matching.
zypp::iostr::copy
std::ostream & copy(std::istream &from_r, std::ostream &to_r)
Copy istream to ostream.
Definition: IOStream.h:50
zypp::sat::detail::size_type
SolvableIdType size_type
Definition: PoolMember.h:126
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
zypp::readRepoFile
std::list< RepoInfo > readRepoFile(const Url &repo_file)
Parses repo_file and returns a list of RepoInfo objects corresponding to repositories found within th...
Definition: RepoManager.cc:457
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:147
zypp::ZYPP_DECLARE_OPERATORS_FOR_FLAGS
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(DiskUsageCounter::MountPoint::HintFlags)
zypp::RWCOW_pointer
RW_pointer supporting 'copy on write' functionality.
Definition: PtrTypes.h:459
zypp::RepoManagerOptions
Repo manager settings.
Definition: RepoManager.h:54
zypp::RepoManagerOptions::servicesTargetDistro
std::string servicesTargetDistro
Target distro ID to be used when refreshing repo index services.
Definition: RepoManager.h:93
zypp::RepoManagerOptions::makeTestSetup
static RepoManagerOptions makeTestSetup(const Pathname &root_r)
Test setup adjusting all paths to be located below one root_r directory.
Definition: RepoManager.cc:486
zypp::RepoManagerOptions::repoSolvCachePath
Pathname repoSolvCachePath
Definition: RepoManager.h:81
zypp::RepoManagerOptions::knownReposPath
Pathname knownReposPath
Definition: RepoManager.h:83
zypp::RepoManagerOptions::repoCachePath
Pathname repoCachePath
Definition: RepoManager.h:79
zypp::RepoManagerOptions::pluginsPath
Pathname pluginsPath
Definition: RepoManager.h:85
zypp::RepoManagerOptions::probe
bool probe
Definition: RepoManager.h:86
zypp::RepoManagerOptions::rootDir
Pathname rootDir
remembers root_r value for later use
Definition: RepoManager.h:96
zypp::RepoManagerOptions::knownServicesPath
Pathname knownServicesPath
Definition: RepoManager.h:84
zypp::RepoManagerOptions::repoRawCachePath
Pathname repoRawCachePath
Definition: RepoManager.h:80
zypp::RepoManagerOptions::repoPackagesCachePath
Pathname repoPackagesCachePath
Definition: RepoManager.h:82
zypp::RepoManagerOptions::RepoManagerOptions
RepoManagerOptions(const Pathname &root_r=Pathname())
Default ctor following ZConfig global settings.
Definition: RepoManager.cc:472
zypp::RepoManager::Impl
RepoManager implementation.
Definition: RepoManager.cc:521
zypp::RepoManager::MatchServiceAlias
Functor thats filter RepoInfo by service which it belongs to.
Definition: RepoManager.h:642
zypp::RepoManager::MatchServiceAlias::MatchServiceAlias
MatchServiceAlias(const std::string &alias_)
Definition: RepoManager.h:644
zypp::RepoManager::MatchServiceAlias::operator()
bool operator()(const RepoInfo &info) const
Definition: RepoManager.h:645
zypp::RepoManager::MatchServiceAlias::alias
std::string alias
Definition: RepoManager.h:648
zypp::repo::RepoType
Repository type enumeration.
Definition: RepoType.h:28
zypp::repo::ServiceType
Service type enumeration.
Definition: ServiceType.h:27
zypp::url::ViewOption
Url::asString() view options.
Definition: UrlBase.h:40
zypp::url::ViewOption::DEFAULTS
static const ViewOption DEFAULTS
Default combination of view options.
Definition: UrlBase.h:177