21 {
return _pimpl->priority; }
48 {
return _pimpl->channel; }
51 {
return _pimpl->package; }
63 {
return _pimpl->architecture; }
66 {
return _pimpl->systemRepo; }
72 {
return _pimpl->resolverFocus; }
75 {
return _pimpl->globalPath; }
78 {
return _pimpl->hardwareInfoFile; }
81 {
return _pimpl->systemCheck; }
84 {
return _pimpl->modaliasList; }
87 {
return _pimpl->localesTracker; }
90 {
return _pimpl->vendorLists; }
93 {
return _pimpl->autoinstalled; }
96 {
return _pimpl->multiversionSpec; }
99 {
return _pimpl->forceInstallTasks; }
102 {
return _pimpl->set_licence; }
105 {
return _pimpl->show_mediaid; }
108 {
return _pimpl->ignorealreadyrecommended; }
111 {
return _pimpl->onlyRequires; }
114 {
return _pimpl->forceResolve; }
117 {
return _pimpl->cleandepsOnRemove; }
120 {
return _pimpl->allowDowngrade; }
123 {
return _pimpl->allowNameChange; }
126 {
return _pimpl->allowArchChange; }
129 {
return _pimpl->allowVendorChange; }
132 {
return _pimpl->dupAllowDowngrade; }
135 {
return _pimpl->dupAllowNameChange; }
138 {
return _pimpl->dupAllowArchChange; }
141 {
return _pimpl->dupAllowVendorChange; }
145 const auto &setup =
data();
146 if ( !setup.architecture.empty() )
148 MIL <<
"Setting architecture to '" << setup.architecture <<
"'" << std::endl;
150 setenv (
"ZYPP_TESTSUITE_FAKE_ARCH", setup.architecture.c_str(), 1);
153 if ( setup.systemRepo ) {
154 if (!
loadRepo( manager, *
this, *setup.systemRepo ) )
156 ERR <<
"Can't setup 'system'" << std::endl;
161 if ( !setup.hardwareInfoFile.empty() ) {
162 setenv(
"ZYPP_MODALIAS_SYSFS", setup.hardwareInfoFile.asString().c_str(), 1 );
163 MIL <<
"setting HardwareInfo to: " << setup.hardwareInfoFile.asString() << std::endl;
166 for (
const auto &channel : setup.repos ) {
167 if ( !
loadRepo( manager, *
this, channel ) )
169 ERR <<
"Can't setup 'channel'" << std::endl;
174 if ( !setup.systemCheck.empty() ) {
175 MIL <<
"setting systemCheck to: " << setup.systemCheck.asString() << std::endl;
176 SystemCheck::instance().setFile( setup.systemCheck );
184 const auto &repoData =
data.data();
186 MIL <<
"'" << pathname <<
"'" << std::endl;
194 MIL <<
"Load from Url '" << repoData.path <<
"'" << std::endl;
198 nrepo.
setName ( repoData.alias );
210 ERR <<
"Couldn't load packages from Url '" << repoData.path <<
"'" << std::endl;
216 MIL <<
"Load from File '" << pathname <<
"'" << std::endl;
219 if ( repoData.alias ==
"@System" ) {
228 nrepo.
setName ( repoData.alias );
239 MIL <<
"Loaded " << satRepo.
solvablesSize() <<
" resolvables from " << ( repoData.path.empty()?pathname.
asString():repoData.path) <<
"." << std::endl;
243 ERR <<
"Couldn't load packages from XML file '" << repoData.path <<
"'" << std::endl;
ResolverFocus resolverFocus() const
TestcaseSetupImpl & data()
const std::string & package() const
Repository reposInsert(const std::string &alias_r)
Return a Repository named alias_r.
bool ignorealreadyrecommended() const
bool dupAllowDowngrade() const
void setAutorefresh(bool autorefresh)
enable or disable autorefresh
static ZConfig & instance()
Singleton ctor.
const std::string & kind() const
bool allowArchChange() const
void setPriority(unsigned newval_r)
Set repository priority for solver.
const std::vector< ForceInstall > & forceInstallTasks() const
ResolverFocus
The resolver's general attitude.
bool allowNameChange() const
const RepoDataImpl & data() const
const std::set< std::string > & multiversionSpec() const
void setEnabled(bool enabled)
enable or disable the repository
Arch architecture() const
void setAlias(const std::string &alias)
set the repository alias
What is known about a repository.
void setSystemArchitecture(const Arch &arch_r)
Override the zypp system architecture.
const std::vector< RepoData > & repos() const
const ForceInstallImpl & data() const
RWCOW_pointer< TestcaseSetupImpl > _pimpl
void buildCache(const RepoInfo &info, CacheBuildPolicy policy, OPT_PROGRESS)
const base::SetTracker< LocaleSet > & localesTracker() const
void addTesttags(const Pathname &file_r)
Load Solvables from a libsolv testtags-file.
const Pathname & systemCheck() const
bool allowDowngrade() const
void loadFromCache(const RepoInfo &info, OPT_PROGRESS)
Repository systemRepo()
Return the system repository, create it if missing.
static Pool instance()
Singleton ctor.
const std::string & path() const
Url asUrl(const std::string &scheme_r) const
Url representation using scheme_r schema .
RWCOW_pointer< ForceInstallImpl > _pimpl
const std::string & asString() const
String representation.
bool forceResolve() const
void setInfo(const RepoInfo &info_r)
Set RepoInfo for this repository.
creates and provides information about known sources.
const std::vector< std::vector< std::string > > & vendorLists() const
void addBaseUrl(const Url &url)
Add a base url.
const std::string & alias() const
TestcaseRepoType type() const
std::vector< std::string > ModaliasList
Libsolv Id queue wrapper.
const std::string & channel() const
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).
void addHelix(const Pathname &file_r)
Load Solvables from a helix-file.
bool dupAllowVendorChange() const
void refreshMetadata(const RepoInfo &info, RawMetadataRefreshPolicy policy, OPT_PROGRESS)
Base class for Exception.
bool applySetup(zypp::RepoManager &manager) const
static bool loadRepo(zypp::RepoManager &manager, const TestcaseSetup &setup, const RepoData &data)
bool show_mediaid() const
const Pathname & globalPath() const
void setName(const std::string &name)
set the repository name
bool allowVendorChange() const
size_type solvablesSize() const
Number of solvables in Repository.
const sat::StringQueue & autoinstalled() const
const Pathname & hardwareInfoFile() const
const std::optional< RepoData > & systemRepo() const
bool onlyRequires() const
bool cleandepsOnRemove() const
const target::Modalias::ModaliasList & modaliasList() const
bool dupAllowArchChange() const
bool dupAllowNameChange() const
RWCOW_pointer< RepoDataImpl > _pimpl