RepoManager implementation.
More...
|
| | Impl (const RepoManagerOptions &opt) |
| |
| | ~Impl () |
| |
| 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 |
| |
| Pathname | metadataPath (const RepoInfo &info) const |
| |
| Pathname | packagesPath (const RepoInfo &info) const |
| |
| RepoStatus | metadataStatus (const RepoInfo &info) const |
| |
| RefreshCheckStatus | checkIfToRefreshMetadata (const RepoInfo &info, const Url &url, RawMetadataRefreshPolicy policy) |
| |
| void | refreshMetadata (const RepoInfo &info, RawMetadataRefreshPolicy policy, OPT_PROGRESS) |
| |
| void | cleanMetadata (const RepoInfo &info, OPT_PROGRESS) |
| |
| void | cleanPackages (const RepoInfo &info, OPT_PROGRESS) |
| |
| void | buildCache (const RepoInfo &info, CacheBuildPolicy policy, OPT_PROGRESS) |
| |
| repo::RepoType | probe (const Url &url, const Pathname &path=Pathname()) const |
| |
| void | cleanCacheDirGarbage (OPT_PROGRESS) |
| |
| void | cleanCache (const RepoInfo &info, OPT_PROGRESS) |
| |
| bool | isCached (const RepoInfo &info) const |
| |
| RepoStatus | cacheStatus (const RepoInfo &info) const |
| |
| void | loadFromCache (const RepoInfo &info, OPT_PROGRESS) |
| |
| void | addRepository (const RepoInfo &info, OPT_PROGRESS) |
| |
| void | addRepositories (const Url &url, OPT_PROGRESS) |
| |
| void | removeRepository (const RepoInfo &info, OPT_PROGRESS) |
| |
| void | modifyRepository (const std::string &alias, const RepoInfo &newinfo_r, OPT_PROGRESS) |
| |
| RepoInfo | getRepositoryInfo (const std::string &alias, OPT_PROGRESS) |
| |
| RepoInfo | getRepositoryInfo (const Url &url, const url::ViewOption &urlview, OPT_PROGRESS) |
| |
| 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 |
| |
| void | addService (const ServiceInfo &service) |
| |
| void | addService (const std::string &alias, const Url &url) |
| |
| void | removeService (const std::string &alias) |
| |
| void | removeService (const ServiceInfo &service) |
| |
| void | refreshServices (const RefreshServiceOptions &options_r) |
| |
| void | refreshService (const std::string &alias, const RefreshServiceOptions &options_r) |
| |
| void | refreshService (const ServiceInfo &service, const RefreshServiceOptions &options_r) |
| |
| void | modifyService (const std::string &oldAlias, const ServiceInfo &newService) |
| |
| repo::ServiceType | probeService (const Url &url) const |
| |
RepoManager implementation.
Definition at line 435 of file RepoManager.cc.
| zypp::RepoManager::Impl::~Impl |
( |
| ) |
|
|
inline |
| bool zypp::RepoManager::Impl::repoEmpty |
( |
| ) |
const |
|
inline |
| bool zypp::RepoManager::Impl::hasRepo |
( |
const std::string & |
alias | ) |
const |
|
inline |
| RepoInfo zypp::RepoManager::Impl::getRepo |
( |
const std::string & |
alias | ) |
const |
|
inline |
| Pathname zypp::RepoManager::Impl::metadataPath |
( |
const RepoInfo & |
info | ) |
const |
|
inline |
| Pathname zypp::RepoManager::Impl::packagesPath |
( |
const RepoInfo & |
info | ) |
const |
|
inline |
Given a downloader, sets the other repos raw metadata path as cache paths for the fetcher, so if another repo has the same file, it will not download it but copy it from the other repository
Definition at line 1005 of file RepoManager.cc.
| repo::RepoType zypp::RepoManager::Impl::probe |
( |
const Url & |
url, |
|
|
const Pathname & |
path = Pathname() |
|
) |
| const |
| void zypp::RepoManager::Impl::cleanCacheDirGarbage |
( |
OPT_PROGRESS |
| ) |
|
| bool zypp::RepoManager::Impl::isCached |
( |
const RepoInfo & |
info | ) |
const |
|
inline |
| void zypp::RepoManager::Impl::addRepositories |
( |
const Url & |
url, |
|
|
OPT_PROGRESS |
|
|
) |
| |
| void zypp::RepoManager::Impl::modifyRepository |
( |
const std::string & |
alias, |
|
|
const RepoInfo & |
newinfo_r, |
|
|
OPT_PROGRESS |
|
|
) |
| |
| bool zypp::RepoManager::Impl::serviceEmpty |
( |
| ) |
const |
|
inline |
| bool zypp::RepoManager::Impl::hasService |
( |
const std::string & |
alias | ) |
const |
|
inline |
| ServiceInfo zypp::RepoManager::Impl::getService |
( |
const std::string & |
alias | ) |
const |
|
inline |
| void zypp::RepoManager::Impl::addService |
( |
const ServiceInfo & |
service | ) |
|
| void zypp::RepoManager::Impl::addService |
( |
const std::string & |
alias, |
|
|
const Url & |
url |
|
) |
| |
|
inline |
| void zypp::RepoManager::Impl::removeService |
( |
const std::string & |
alias | ) |
|
| void zypp::RepoManager::Impl::removeService |
( |
const ServiceInfo & |
service | ) |
|
|
inline |
| void zypp::RepoManager::Impl::refreshService |
( |
const std::string & |
alias, |
|
|
const RefreshServiceOptions & |
options_r |
|
) |
| |
- Todo:
- add callbacks for apps (start, end, repo removed, repo added, repo changed)
Definition at line 1924 of file RepoManager.cc.
| void zypp::RepoManager::Impl::modifyService |
( |
const std::string & |
oldAlias, |
|
|
const ServiceInfo & |
newService |
|
) |
| |
| void zypp::RepoManager::Impl::saveService |
( |
ServiceInfo & |
service | ) |
const |
|
private |
| Pathname zypp::RepoManager::Impl::generateNonExistingName |
( |
const Pathname & |
dir, |
|
|
const std::string & |
basefilename |
|
) |
| const |
|
private |
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
-
| dir | Directory where the file needs to be unique |
| basefilename | string to base the filename on. |
Definition at line 672 of file RepoManager.cc.
| std::string zypp::RepoManager::Impl::generateFilename |
( |
const RepoInfo & |
info | ) |
const |
|
inlineprivate |
| std::string zypp::RepoManager::Impl::generateFilename |
( |
const ServiceInfo & |
info | ) |
const |
|
inlineprivate |
| void zypp::RepoManager::Impl::setCacheStatus |
( |
const RepoInfo & |
info, |
|
|
const RepoStatus & |
status |
|
) |
| |
|
inlineprivate |
| void zypp::RepoManager::Impl::touchIndexFile |
( |
const RepoInfo & |
info | ) |
|
|
private |
template<typename OutputIterator >
| void zypp::RepoManager::Impl::getRepositoriesInService |
( |
const std::string & |
alias, |
|
|
OutputIterator |
out |
|
) |
| const |
|
inlineprivate |
| void zypp::RepoManager::Impl::init_knownServices |
( |
| ) |
|
|
private |
| void zypp::RepoManager::Impl::init_knownRepositories |
( |
| ) |
|
|
private |
| const RepoSet& zypp::RepoManager::Impl::repos |
( |
| ) |
const |
|
inlineprivate |
| RepoSet& zypp::RepoManager::Impl::reposManip |
( |
| ) |
|
|
inlineprivate |
| Impl* zypp::RepoManager::Impl::clone |
( |
| ) |
const |
|
inlineprivate |
| RepoSet zypp::RepoManager::Impl::_reposX |
|
private |
The documentation for this class was generated from the following file: