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