15#include <solv/knownid.h>
18#include <zypp/base/LogTools.h>
32 namespace packagedelta
39 INT <<
"Illegal non-repositoryDeltaInfo iterator: " << deltaInfo_r << endl;
55 switch ( it.inSolvAttr().id() )
57 case DELTA_PACKAGE_NAME:
58 _name = it.asString();
61 case DELTA_PACKAGE_EVR:
65 case DELTA_PACKAGE_ARCH:
69 case DELTA_LOCATION_DIR:
73 case DELTA_LOCATION_NAME:
77 case DELTA_LOCATION_EVR:
81 case DELTA_LOCATION_SUFFIX:
82 locsuffix = it.idStr();
85 case DELTA_DOWNLOADSIZE:
110 WAR <<
"Ignore unknown attribute: " << it << endl;
118 locsuffix.
c_str() ) );
129 <<
"DeltaRpm[" << obj.
name() <<
"-" << obj.
edition() <<
"." << obj.
arch()
Store and operate with byte count.
Edition represents [epoch:]version[-release]
Access to the sat-pools string space.
const char * c_str() const
Conversion to const char *
std::string asString() const
Conversion to std::string
const Edition & edition() const
BaseVersion & setEdition(const Edition &val_r)
BaseVersion & setSequenceinfo(const std::string &val_r)
const Edition & edition() const
const std::string & name() const
const OnMediaLocation & location() const
OnMediaLocation _location
const BaseVersion & baseversion() const
const Arch & arch() const
iterator subBegin() const
Iterator to the begin of a sub-structure.
SolvAttr inSolvAttr() const
The current SolvAttr.
iterator subEnd() const
Iterator behind the end of a sub-structure.
Repository inRepo() const
The current Repository.
static const SolvAttr repositoryDeltaInfo
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const DeltaRpm &obj)
std::string form(const char *format,...) __attribute__((format(printf
Printf style construction of std::string.
Easy-to use interface to the ZYPP dependency resolver.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.