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