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