65 switch ( category_r[0] )
118 INT <<
"Unrecognized Patch::Category string '" << category_r <<
"'" << endl;
134 return std::string(
"other" );
153 switch ( severity_r[0] )
190 INT <<
"Unrecognized Patch::Severity string '" << severity_r <<
"'" << endl;
206 return std::string(
"unknown" );
225 InteractiveFlags patchFlags (
NoFlags);
281 for_( entry, updateCollection.
begin(), updateCollection.
end() )
288 WAR <<
"Ignore malformed updateCollection entry: " <<
name <<
"-" <<
edition <<
"." <<
arch << endl;
294 bool relevant =
false;
298 if ( it->isSystem() && it->ident() ==
name && it->arch() ==
arch )
312 if ( providers.
empty() )
316 if ( providers.
empty() )
327 result.
get().insert( *(providers.
begin()) );
Edition represents [epoch:]version[-release]
Access to the sat-pools string space.
'Language[_Country]' codes.
std::string title() const
Title describing the issue.
std::string id() const
The id of the reference.
std::string href() const
Url or pointer where to find more information.
std::string type() const
Type of the reference.
Class representing a patch.
Category categoryEnum() const
This patch's category as enum of wellknown categories.
bool isSeverity(const std::string &severity_r) const
Whether this patch's severity matches severity_r.
bool interactive() const
Is the patch installation interactive?
InteractiveFlag
Flags defining if and why this patch is interactive.
SeverityFlag
Possible severity levels for (security) patches.
@ SEV_NONE
no value specified
@ SEV_IMPORTANT
Important.
@ SEV_OTHER
unknown value specified
InteractiveFlags interactiveFlags() const
Get the InteractiveFlags of this Patch.
std::string severity() const
Severity string as specified in metadata.
std::string category() const
Patch category (recommended, security,...)
sat::SolvableSet Contents
bool rebootSuggested() const
Does the system need to reboot to finish the update process?
bool reloginSuggested() const
Does the patch needs the user to relogin to take effect?
bool isCategory(const std::string &category_r) const
Whether this patch's category matches category_r.
Contents contents() const
The collection of packages associated with this patch.
@ CAT_OTHER
unknown value specified
std::string message(const Locale &lang_r=Locale()) const
Information or warning to be displayed to the user.
SeverityFlag severityFlag() const
Severity string mapped to an enum.
bool restartSuggested() const
Does the patch affect the package manager itself?
Patch(const sat::Solvable &solvable_r)
Ctor.
bool interactiveWhenIgnoring(InteractiveFlags flags_r=NoFlags) const
Is the patch still interactive when ignoring this flags?
static const ResKind package
friend ResObject::Ptr makeResObject(const sat::Solvable &solvable_r)
Create ResObject from sat::Solvable.
ResObject(const sat::Solvable &solvable_r)
Ctor.
std::string asString() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
iterator subFind(const SolvAttr &attr_r) const
Iterator pointing to the first occurance of SolvAttr attr_r in sub-structure.
Lightweight attribute value lookup.
iterator end() const
Iterator behind the end of query results.
iterator begin() const
Iterator to the begin of query results.
static const SolvAttr updateCollectionArch
static const SolvAttr updateReferenceId
static const SolvAttr updateReferenceType
static const SolvAttr message
static const SolvAttr updateCollectionEvr
static const SolvAttr updateReferenceHref
static const SolvAttr restartSuggested
static const SolvAttr updateCollectionName
static const SolvAttr updateCollection
static const SolvAttr rebootSuggested
static const SolvAttr updateReferenceTitle
static const SolvAttr patchcategory
static const SolvAttr updateReference
static const SolvAttr severity
static const SolvAttr reloginSuggested
Container & get()
The set.
const_iterator end() const
Iterator pointing behind the last Solvable.
const_iterator begin() const
Iterator pointing to the first Solvable.
A Solvable object within the sat Pool.
Container of Solvable providing a Capability (read only).
const_iterator end() const
Iterator pointing behind the last Solvable.
bool empty() const
Whether the container is empty.
const_iterator begin() const
Iterator pointing to the first Solvable.
std::string toLower(const std::string &s)
Return lowercase version of s.
std::string hexstring(char n, int w=4)
int compareCI(const C_Str &lhs, const C_Str &rhs)
Easy-to use interface to the ZYPP dependency resolver.
std::string asString(const Patch::Category &obj)
bool lookupBoolAttribute(const SolvAttr &attr) const
std::string lookupStrAttribute(const SolvAttr &attr) const
Solvable satSolvable() const
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
#define IMPL_PTR_TYPE(NAME)