15 #include <solv/knownid.h>
31 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 <<
"Igore unknown attribute: " << it << endl;
118 locsuffix.
c_str() ) );
129 <<
"DeltaRpm[" << obj.
name() <<
"-" << obj.
edition() <<
"." << obj.
arch()
const BaseVersion & baseversion() const
static const SolvAttr repositoryDeltaInfo
Store and operate with byte count.
std::ostream & operator<<(std::ostream &str, const DeltaRpm &obj)
Access to the sat-pools string space.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
Edition represents [epoch:]version[-release]
std::string asString() const
Conversion to std::string
const Arch & arch() const
iterator subBegin() const
Iterator to the begin of a sub-structure.
const Edition & edition() const
SolvAttr inSolvAttr() const
The current SolvAttr.
const Edition & edition() const
BaseVersion & setSequenceinfo(const std::string &val_r)
OnMediaLocation _location
const OnMediaLocation & location() const
const char * c_str() const
Conversion to const char *
Repository inRepo() const
The current Repository.
std::string form(const char *format,...)
Printf style construction of std::string.
const std::string & sequenceinfo() const
BaseVersion & setEdition(const Edition &val_r)
const std::string & name() const
iterator subEnd() const
Iterator behind the end of a sub-structure.