24 PoolInstallStateFlags flags;
51 if ( sel && sel->hasInstalledObj() )
53 if ( sel->identicalInstalled( pi ) )
59 flags |= S::OtherVersionInstalled;
60 flags |= sel->identIsAutoInstalled() ? S::AutoInstalled : S::UserInstalled;
68 if ( status.
isLocked() ) flags |= S::Locked;
77 PoolInstallStateFlags flags;
100 flags |= S::OtherVersionInstalled;
106 if ( sel.
locked() ) flags |= S::Locked;
Structured install-state flags for pool items and selectables.
Combining sat::Solvable and ResStatus.
ResStatus & status() const
Returns the current status.
ValidateValue validate() const
Collects PoolItems of same kind and name.
static Ptr get(const pool::ByIdent &ident_r)
Get the Selctable.
bool locked() const
True if locked (subclass of unmodified).
PoolItem installedObj() const
The last Installed object.
bool hasBlacklistedInstalled() const
True if this Selectable contains an installed blacklisted item (retracted,ptf,...).
PoolItem theObj() const
An object you could use as pars pro toto.
bool identIsAutoInstalled() const
Whether this ident is flagged as AutoInstalled.
bool identicalAvailable(const PoolItem &rhs) const
True if rhs is installed and one with the same content is available.
bool hasInstalledObj() const
True if installed object is present.
intrusive_ptr< Selectable > Ptr
ResKind kind() const
The ResObjects kind.
PoolInstallState
Install-state flags for a pool item or selectable.
PoolInstallStateFlags poolInstallState(const PoolItem &pi)
Compute install-state flags for a PoolItem.
bool isPseudoInstalled(const ResKind &kind_r)
Those are denoted to be installed, if the solver verifies them as being satisfied.
bool isBlacklisted() const
bool identIsAutoInstalled() const