57 switch ( category_r[0] )
126 switch ( severity_r[0] )
178 return std::string(
"unknown" );
197 InteractiveFlags patchFlags (
NoFlags);
241 for_( entry, updateCollection.
begin(), updateCollection.
end() )
248 WAR <<
"Ignore malformed updateCollection entry: " <<
name <<
"-" <<
edition <<
"." <<
arch << endl;
254 bool relevant =
false;
256 for_( it, providers.begin(), providers.end() )
258 if ( it->isSystem() && it->ident() ==
name && it->arch() ==
arch )
272 if ( providers.empty() )
276 if ( providers.empty() )
280 WAR <<
"Missing provider: " <<
name <<
"-" << edition <<
"." <<
arch << endl;
287 result.
get().insert( *(providers.begin()) );
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 type() const
Type of the reference.
std::string href() const
Url or pointer where to find more information.
static const SolvAttr updateReference
Lightweight attribute value lookup.
std::string lookupStrAttribute(const SolvAttr &attr) const
returns the string attribute value for attr or an empty string if it does not exists.
Category categoryEnum() const
This patch's category as enum of wellknown categories.
Access to the sat-pools string space.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
std::string category() const
Patch category (recommended, security,...)
Edition represents [epoch:]version[-release]
Contents contents() const
The collection of packages associated with this patch.
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
License or agreement to accept.
static const SolvAttr updateReferenceTitle
const_iterator begin() const
Iterator pointing to the first Solvable.
bool interactiveWhenIgnoring(InteractiveFlags flags_r=NoFlags) const
Is the patch still interactive when ignoring this flags?
const_iterator end() const
Iterator pointing behind the last Solvable.
bool isCategory(const std::string &category_r) const
Whether this patch's category matches category_r.
static const SolvAttr updateReferenceId
SeverityFlag severityFlag() const
Severity string mapped to an enum.
iterator end() const
Iterator behind the end of query results.
static const SolvAttr updateCollection
static const SolvAttr updateCollectionEvr
bool isSeverity(const std::string &severity_r) const
Whether this patch's severity matches severity_r.
std::string title() const
Title describing the issue.
bool lookupBoolAttribute(const SolvAttr &attr) const
returns the boolean attribute value for attr or false if it does not exists.
const sat::Solvable & satSolvable() const
Access the corresponding ::Solvable.
IMPL_PTR_TYPE(Application)
Patch(const sat::Solvable &solvable_r)
Ctor.
static const SolvAttr severity
Interface base for resolvable objects (common data).
Container & get()
The set.
static const SolvAttr message
int compareCI(const C_Str &lhs, const C_Str &rhs)
std::string asString(const Patch::SeverityFlag &obj)
std::string message(const Locale &lang_r=Locale()) const
Information or warning to be displayed to the user.
bool reloginSuggested() const
Does the patch needs the user to relogin to take effect? relogin is suggested then.
bool interactive() const
Is the patch installation interactive? (does it need user input?)
static const SolvAttr patchcategory
static const SolvAttr updateReferenceType
bool rebootSuggested() const
Does the system need to reboot to finish the update process?
std::string id() const
The id of the reference.
static const SolvAttr restartSuggested
static const SolvAttr reloginSuggested
static const SolvAttr updateCollectionName
std::string severity() const
Severity string as specified in metadata.
static const SolvAttr updateCollectionArch
bool restartSuggested() const
Does the patch affect the package manager itself? restart is suggested then.
static const SolvAttr rebootSuggested
InteractiveFlags interactiveFlags() const
Get the InteractiveFlags of this Patch.
iterator begin() const
Iterator to the begin of query results.
Solvable set wrapper to allow adding additioanal convenience iterators.