3#include <zypp/base/Logger.h>
6#include <zypp-media/MediaException>
10#include <zypp/ExternalProgram.h>
12using std::stringstream;
82 args.push_back(
"/bin/sh" );
83 args.push_back(
"-c" );
88 if (
prog.close() != 0 )
94 ERR <<
"Capture plugin error:[" << endl <<
errbuffer << endl <<
']' << endl;
Interface of repoindex.xml file reader.
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Base class for Exception.
ExternalProgram extended to offer reading programs stderr.
std::vector< std::string > Arguments
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
void setProbedTtl(Date::Duration ttl_r) const
Lazy init sugested TTL.
Url url() const
The service url.
std::string getPathName(EEncoding eflag=zypp::url::E_DECODED) const
Returns the path name from the URL.
static Pathname stripprefix(const Pathname &root_r, const Pathname &path_r)
Return path_r with any root_r dir prefix striped.
Read repository data from a .repo file.
Reads through a repoindex.xml file and collects repositories.
Retrieval of repository list for a service.
ServiceRepos(const Pathname &root_r, const ServiceInfo &service, const ProcessRepo &callback, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
bsc#1080693: Explicitly pass the RemoManagers rootDir until it can be queried from the ServiceInfo.
function< bool(const RepoInfo &)> ProcessRepo
Return false from the callback to get a AbortRequestException to be thrown and the processing to be c...
Easy-to use interface to the ZYPP dependency resolver.
PluginServiceRepos(const Pathname &root_r, const ServiceInfo &service, const ServiceRepos::ProcessRepo &callback, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
RIMServiceRepos(const Pathname &, const ServiceInfo &service, const ServiceRepos::ProcessRepo &callback, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
Impl & operator=(Impl &&)=delete
Impl & operator=(const Impl &)=delete
Impl(const Impl &)=delete
Service type enumeration.
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.