14#include <zypp/base/LogTools.h>
15#include <zypp/PathInfo.h>
27#undef ZYPP_BASE_LOGGER_LOGGROUP
28#define ZYPP_BASE_LOGGER_LOGGROUP "zypp::misc"
59 getZYpp()->target()->load();
66 RepoInfoList repos =
repoManager.knownRepositories();
67 for_(
it, repos.begin(), repos.end() )
71 if ( !
nrepo.enabled() )
80 MIL <<
str::form(
"*** clean cache for repo '%s'\t",
nrepo.name().c_str() ) << endl;
89 MIL <<
str::form(
"*** build cache for repo '%s'\t",
nrepo.name().c_str() ) << endl;
101 ERR <<
"*** load repo failed: " <<
exp.asString() +
"\n" +
exp.historyAsString() << endl;
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Base class for Exception.
What is known about a repository.
static const std::string & systemRepoAlias()
Reserved system repository alias @System .
static ZYppFactory instance()
Singleton ctor.
Wrapper class for stat/lstat.
Repository reposFind(const std::string &alias_r) const
Find a Repository named alias_r.
static Pool instance()
Singleton ctor.
Repository systemRepo()
Return the system repository, create it if missing.
@ LS_READONLY
// Create readonly ZYpp instance.
@ LS_NOREFRESH
// Don't refresh existing repos.
@ LS_NOREPOS
// Don't loag existing repos (just Target).
void defaultLoadSystem(const Pathname &sysRoot_r, LoadSystemFlags flags_r)
Create the ZYpp instance and load target and enabled repositories.
std::string form(const char *format,...) __attribute__((format(printf
Printf style construction of std::string.
void IWantIt() ZYPP_DEPRECATED
Easy-to use interface to the ZYPP dependency resolver.
creates and provides information about known sources.
@ REFRESH_NEEDED
refresh is needed
static const RepoType RPMPLAINDIR
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
#define ZYPP_RETHROW(EXCPT)
Drops a logline and rethrows, updating the CodeLocation.
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.