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() )
315 WAR <<
"Missing provider: " <<
name <<
"-" << edition <<
"." <<
arch << endl;
322 result.
get().insert( *(providers.begin()) );
std::string asString(const Patch::Category &obj)
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 lookupStrAttribute(const SolvAttr &attr) const
std::string href() const
Url or pointer where to find more information.
static const SolvAttr updateReference
Lightweight attribute value lookup.
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.
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.
IMPL_PTR_TYPE(Application)
Patch(const sat::Solvable &solvable_r)
Ctor.
static const SolvAttr severity
Base for resolvable objects.
Container & get()
The set.
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)
'Language[_Country]' codes.
InteractiveFlag
Flags defining if and why this patch is interactive.
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.
Solvable satSolvable() const
Return the corresponding sat::Solvable.
static const SolvAttr restartSuggested
bool lookupBoolAttribute(const SolvAttr &attr) const
static const SolvAttr reloginSuggested
static const SolvAttr updateCollectionName
std::string severity() const
Severity string as specified in metadata.
static const SolvAttr updateCollectionArch
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
std::string hexstring(char n, int w=4)
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.