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;
 
  192    if ( repoData.type == TrType::Url ) {
 
  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 );
 
  235        if ( repoData.type == TrType::Helix )
 
  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;
 
 
Base class for Exception.
What is known about a repository.
void addBaseUrl(Url url)
Add a base url.
void setPriority(unsigned newval_r)
Set repository priority for solver.
creates and provides information about known sources.
void refreshMetadata(const RepoInfo &info, RawMetadataRefreshPolicy policy=RefreshIfNeeded, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Refresh local raw cache.
void buildCache(const RepoInfo &info, CacheBuildPolicy policy=BuildIfNeeded, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Refresh local cache.
void loadFromCache(const RepoInfo &info, const ProgressData::ReceiverFnc &progressrcv=ProgressData::ReceiverFnc())
Load resolvables into the pool.
void addHelix(const Pathname &file_r)
Load Solvables from a helix-file.
void addTesttags(const Pathname &file_r)
Load Solvables from a libsolv testtags-file.
size_type solvablesSize() const
Number of solvables in Repository.
void setInfo(const RepoInfo &info_r)
Set RepoInfo for this repository.
void setSystemArchitecture(const Arch &arch_r)
Override the zypp system architecture.
static ZConfig & instance()
Singleton ctor.
Url asUrl(const std::string &scheme_r) const
Url representation using scheme_r schema .
const std::string & asString() const
String representation.
RWCOW_pointer< ForceInstallImpl > _pimpl
const std::string & package() const
const std::string & kind() const
const std::string & channel() const
const ForceInstallImpl & data() const
const RepoDataImpl & data() const
TestcaseRepoType type() const
RWCOW_pointer< RepoDataImpl > _pimpl
const std::string & path() const
const std::string & alias() const
Arch architecture() const
const std::vector< RepoData > & repos() const
bool applySetup(zypp::RepoManager &manager) const
ResolverFocus resolverFocus() const
bool onlyRequires() const
const target::Modalias::ModaliasList & modaliasList() const
const std::vector< ForceInstall > & forceInstallTasks() const
const std::optional< RepoData > & systemRepo() const
const std::vector< std::vector< std::string > > & vendorLists() const
const std::set< std::string > & multiversionSpec() const
bool dupAllowVendorChange() const
RWCOW_pointer< TestcaseSetupImpl > _pimpl
bool allowNameChange() const
const sat::StringQueue & autoinstalled() const
bool allowDowngrade() const
static bool loadRepo(zypp::RepoManager &manager, const TestcaseSetup &setup, const RepoData &data)
const Pathname & systemCheck() const
TestcaseSetupImpl & data()
bool dupAllowNameChange() const
bool allowArchChange() const
bool cleandepsOnRemove() const
bool show_mediaid() const
bool forceResolve() const
const Pathname & globalPath() const
const Pathname & hardwareInfoFile() const
bool ignorealreadyrecommended() const
bool allowVendorChange() const
const base::SetTracker< LocaleSet > & localesTracker() const
bool dupAllowArchChange() const
bool dupAllowDowngrade() const
void setAutorefresh(bool autorefresh)
enable or disable autorefresh
void setAlias(const std::string &alias)
set the repository alias
void setName(const std::string &name)
set the repository name
void setEnabled(bool enabled)
enable or disable the repository
static Pool instance()
Singleton ctor.
Repository reposInsert(const std::string &alias_r)
Return a Repository named alias_r.
Repository systemRepo()
Return the system repository, create it if missing.
std::vector< std::string > ModaliasList
Queue StringQueue
Queue with String ids.
ResolverFocus
The resolver's general attitude.
Track added/removed set items based on an initial set.
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).