|
libzypp
9.1.2
|
Enumerations | |
| enum | LoadSystemFlag { LS_READONLY = (1 << 0), LS_NOREFRESH = (1 << 1) } |
| Bits for tuning defaultLoadSystem. More... | |
Functions | |
| void | defaultLoadSystem (const Pathname &sysRoot_r="/", LoadSystemFlags flags_r=LoadSystemFlags()) |
| Create the ZYpp instance and load target and enabled repositories. | |
| void | defaultLoadSystem (LoadSystemFlags flags_r) |
Bits for tuning defaultLoadSystem.
Use LoadSystemFlags as a type-safe way of storing OR-combinations.
| LS_READONLY |
// Create readonly ZYpp instance. |
| LS_NOREFRESH |
// Don't refresh existing repos. |
Definition at line 33 of file DefaultLoadSystem.h.
| void zypp::misc::defaultLoadSystem | ( | const Pathname & | sysRoot_r = "/", |
| LoadSystemFlags | flags_r = LoadSystemFlags() |
||
| ) |
Create the ZYpp instance and load target and enabled repositories.
| Exception | on error |
Definition at line 37 of file DefaultLoadSystem.cc.
References zypp::repo::RepoInfoBase::alias(), zypp::Exception::asString(), zypp::RepoManager::buildCache(), zypp::RepoManager::checkIfToRefreshMetadata(), zypp::RepoManager::cleanCache(), zypp::repo::RepoInfoBase::enabled(), ERR, for_, zypp::str::form(), zypp::ZYppFactory::haveZYpp(), zypp::Exception::historyAsString(), zypp::ZYppFactory::instance(), zypp::sat::Pool::instance(), zypp::RepoManager::isCached(), zypp::zypp_readonly_hack::IWantIt(), zypp::RepoManager::knownRepositories(), zypp::RepoManager::loadFromCache(), LS_NOREFRESH, LS_READONLY, MIL, zypp::repo::RepoInfoBase::name(), zypp::RepoManager::REFRESH_NEEDED, zypp::RepoManager::refreshMetadata(), zypp::sat::Pool::reposFind(), zypp::repo::RepoType::RPMPLAINDIR, zypp::sat::Pool::systemRepo(), zypp::Repository::systemRepoAlias(), zypp::RepoInfo::type(), zypp::RepoInfo::url(), ZYPP_RETHROW, and ZYPP_THROW.
Referenced by defaultLoadSystem().
| void zypp::misc::defaultLoadSystem | ( | LoadSystemFlags | flags_r | ) | [inline] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 54 of file DefaultLoadSystem.h.
References defaultLoadSystem().
1.7.6.1