libzypp
15.21.1
|
RepoManager implementation. More...
Public Member Functions | |
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 |
Probe the metadata type of a repository located at url . More... | |
repo::RepoType | probeCache (const Pathname &path_r) const |
Probe Metadata in a local cache directory. More... | |
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 |
Private Member Functions | |
void | saveService (ServiceInfo &service) const |
Pathname | generateNonExistingName (const Pathname &dir, const std::string &basefilename) const |
Generate a non existing filename in a directory, using a base name. More... | |
std::string | generateFilename (const RepoInfo &info) const |
std::string | generateFilename (const ServiceInfo &info) const |
void | setCacheStatus (const RepoInfo &info, const RepoStatus &status) |
void | touchIndexFile (const RepoInfo &info) |
template<typename OutputIterator > | |
void | getRepositoriesInService (const std::string &alias, OutputIterator out) const |
void | init_knownServices () |
void | init_knownRepositories () |
const RepoSet & | repos () const |
RepoSet & | reposManip () |
Impl * | clone () const |
clone for RWCOW_pointer More... | |
Private Attributes | |
RepoManagerOptions | _options |
RepoSet | _reposX |
ServiceSet | _services |
DefaultIntegral< bool, false > | _reposDirty |
Friends | |
Impl * | rwcowClone (const Impl *rhs) |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const RepoManager::Impl &obj) |
RepoManager implementation.
Definition at line 435 of file RepoManager.cc.
|
inline |
Definition at line 438 of file RepoManager.cc.
|
inline |
Definition at line 445 of file RepoManager.cc.
|
inline |
Definition at line 489 of file RepoManager.cc.
|
inline |
Definition at line 490 of file RepoManager.cc.
|
inline |
Definition at line 491 of file RepoManager.cc.
|
inline |
Definition at line 492 of file RepoManager.cc.
|
inline |
Definition at line 494 of file RepoManager.cc.
|
inline |
Definition at line 497 of file RepoManager.cc.
|
inline |
Definition at line 504 of file RepoManager.cc.
|
inline |
Definition at line 507 of file RepoManager.cc.
RepoStatus zypp::RepoManager::Impl::metadataStatus | ( | const RepoInfo & | info | ) | const |
Definition at line 808 of file RepoManager.cc.
RepoManager::RefreshCheckStatus zypp::RepoManager::Impl::checkIfToRefreshMetadata | ( | const RepoInfo & | info, |
const Url & | url, | ||
RawMetadataRefreshPolicy | policy | ||
) |
Definition at line 880 of file RepoManager.cc.
void zypp::RepoManager::Impl::refreshMetadata | ( | const RepoInfo & | info, |
RawMetadataRefreshPolicy | policy, | ||
OPT_PROGRESS | |||
) |
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 1006 of file RepoManager.cc.
void zypp::RepoManager::Impl::cleanMetadata | ( | const RepoInfo & | info, |
OPT_PROGRESS | |||
) |
Definition at line 1142 of file RepoManager.cc.
void zypp::RepoManager::Impl::cleanPackages | ( | const RepoInfo & | info, |
OPT_PROGRESS | |||
) |
Definition at line 1152 of file RepoManager.cc.
void zypp::RepoManager::Impl::buildCache | ( | const RepoInfo & | info, |
CacheBuildPolicy | policy, | ||
OPT_PROGRESS | |||
) |
Definition at line 1162 of file RepoManager.cc.
repo::RepoType zypp::RepoManager::Impl::probe | ( | const Url & | url, |
const Pathname & | path = Pathname() |
||
) | const |
Probe the metadata type of a repository located at url
.
Urls here may be rewritten by MediaSetAccess to reflect the correct media number.
Definition at line 1325 of file RepoManager.cc.
repo::RepoType zypp::RepoManager::Impl::probeCache | ( | const Pathname & | path_r | ) | const |
Probe Metadata in a local cache directory.
Definition at line 1414 of file RepoManager.cc.
void zypp::RepoManager::Impl::cleanCacheDirGarbage | ( | OPT_PROGRESS | ) |
Definition at line 1433 of file RepoManager.cc.
void zypp::RepoManager::Impl::cleanCache | ( | const RepoInfo & | info, |
OPT_PROGRESS | |||
) |
Definition at line 1480 of file RepoManager.cc.
|
inline |
Definition at line 529 of file RepoManager.cc.
|
inline |
Definition at line 532 of file RepoManager.cc.
void zypp::RepoManager::Impl::loadFromCache | ( | const RepoInfo & | info, |
OPT_PROGRESS | |||
) |
Definition at line 1494 of file RepoManager.cc.
void zypp::RepoManager::Impl::addRepository | ( | const RepoInfo & | info, |
OPT_PROGRESS | |||
) |
Definition at line 1534 of file RepoManager.cc.
void zypp::RepoManager::Impl::addRepositories | ( | const Url & | url, |
OPT_PROGRESS | |||
) |
Definition at line 1625 of file RepoManager.cc.
void zypp::RepoManager::Impl::removeRepository | ( | const RepoInfo & | info, |
OPT_PROGRESS | |||
) |
Definition at line 1682 of file RepoManager.cc.
void zypp::RepoManager::Impl::modifyRepository | ( | const std::string & | alias, |
const RepoInfo & | newinfo_r, | ||
OPT_PROGRESS | |||
) |
Definition at line 1769 of file RepoManager.cc.
RepoInfo zypp::RepoManager::Impl::getRepositoryInfo | ( | const std::string & | alias, |
OPT_PROGRESS | |||
) |
RepoInfo zypp::RepoManager::Impl::getRepositoryInfo | ( | const Url & | url, |
const url::ViewOption & | urlview, | ||
OPT_PROGRESS | |||
) |
|
inline |
Definition at line 549 of file RepoManager.cc.
|
inline |
Definition at line 550 of file RepoManager.cc.
|
inline |
Definition at line 551 of file RepoManager.cc.
|
inline |
Definition at line 552 of file RepoManager.cc.
|
inline |
Definition at line 554 of file RepoManager.cc.
|
inline |
Definition at line 557 of file RepoManager.cc.
void zypp::RepoManager::Impl::addService | ( | const ServiceInfo & | service | ) |
Definition at line 1865 of file RepoManager.cc.
|
inline |
Definition at line 565 of file RepoManager.cc.
void zypp::RepoManager::Impl::removeService | ( | const std::string & | alias | ) |
Definition at line 1894 of file RepoManager.cc.
|
inline |
Definition at line 569 of file RepoManager.cc.
void zypp::RepoManager::Impl::refreshServices | ( | const RefreshServiceOptions & | options_r | ) |
Definition at line 1950 of file RepoManager.cc.
void zypp::RepoManager::Impl::refreshService | ( | const std::string & | alias, |
const RefreshServiceOptions & | options_r | ||
) |
Definition at line 1968 of file RepoManager.cc.
|
inline |
Definition at line 575 of file RepoManager.cc.
void zypp::RepoManager::Impl::modifyService | ( | const std::string & | oldAlias, |
const ServiceInfo & | newService | ||
) |
Definition at line 2318 of file RepoManager.cc.
repo::ServiceType zypp::RepoManager::Impl::probeService | ( | const Url & | url | ) | const |
Definition at line 2390 of file RepoManager.cc.
|
private |
Definition at line 639 of file RepoManager.cc.
|
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"
dir | Directory where the file needs to be unique |
basefilename | string to base the filename on. |
Definition at line 673 of file RepoManager.cc.
|
inlineprivate |
Definition at line 587 of file RepoManager.cc.
|
inlineprivate |
Definition at line 590 of file RepoManager.cc.
|
inlineprivate |
Definition at line 593 of file RepoManager.cc.
|
private |
Definition at line 843 of file RepoManager.cc.
|
inlineprivate |
Definition at line 603 of file RepoManager.cc.
|
private |
Definition at line 688 of file RepoManager.cc.
|
private |
Definition at line 741 of file RepoManager.cc.
|
inlineprivate |
Definition at line 615 of file RepoManager.cc.
|
inlineprivate |
Definition at line 616 of file RepoManager.cc.
|
inlineprivate |
clone for RWCOW_pointer
Definition at line 628 of file RepoManager.cc.
|
related |
Stream output
Definition at line 634 of file RepoManager.cc.
|
private |
Definition at line 619 of file RepoManager.cc.
|
private |
Definition at line 620 of file RepoManager.cc.
|
private |
Definition at line 621 of file RepoManager.cc.
|
private |
Definition at line 623 of file RepoManager.cc.