11 #include <zypp/base/Logger.h> 12 #include <zypp/base/Gettext.h> 29 std::ifstream inp( path_r.
c_str() );
31 ERR <<
"Can't setup a SUSEMediaVerifier from file: " << path_r.
asString() << endl;
43 explicit operator bool()
const 104 str::Format fmt {
_(
"Expected medium %1%/%2% identified by file '%3%' with content:") };
126 : _pimpl {
new Impl( path_r, mediaNr_r ) }
130 : _pimpl {
new Impl( *rhs.
_pimpl, mediaNr_r ) }
163 SEC << smvData << endl;
168 DBG <<
"Skipping verification due to downloading medium" << std::endl;
197 ret = smvData.
matches( remote );
199 DBG <<
"expect: " << smvData <<
" medium " <<
mediaNr() << endl;
200 DBG <<
"remote: " << remote << endl;
bool valid() const
Data considered to be valid if we have vendor and ident.
const char * c_str() const
String representation.
void addHistory(const std::string &msg_r)
Add some message text to the history.
String related utilities and Regular expression matching.
media::MediaNr _totalMedia
#define ZYPP_RETHROW(EXCPT)
Drops a logline and rethrows, updating the CodeLocation.
std::string getline(std::istream &str)
Read one line from stream.
Convenient building of std::string via std::ostringstream Basically a std::ostringstream autoconverti...
const std::string & asString() const
String representation.
std::ostream & operator<<(std::ostream &str, const DeltaCandidates &obj)
bool schemeIsVolatile() const
TInt strtonum(const C_Str &str)
Parsing numbers from string.
Data parsed from a media.1/media file.
std::string numstring(char n, int w=0)
#define ZYPP_CAUGHT(EXCPT)
Drops a logline telling the Exception was caught (in order to handle it).
bool schemeIsDownloading() const
bool matches(const SMVData &rhs) const
Whether rhs belongs to the same media set.
SMVData(const Pathname &path_r)
std::ostream & operator<<(std::ostream &str, const SMVData &obj)
Easy-to use interface to the ZYPP dependency resolver.