return status().isBroken();
}
+ bool isNeeded() const
+ {
+ return status().isToBeInstalled() || ( isBroken() && ! status().isLocked() );
+ }
+
+ bool isUnwanted() const
+ {
+ return isBroken() && status().isLocked();
+ }
+
private:
mutable ResStatus _status;
ResObject::constPtr _resolvable;
bool PoolItem::isBroken() const
{ return _pimpl->isBroken(); }
+ bool PoolItem::isNeeded() const
+ { return _pimpl->isNeeded(); }
+
+ bool PoolItem::isUnwanted() const
+ { return _pimpl->isUnwanted(); }
+
void PoolItem::saveState() const
{ _pimpl->saveState(); }
/** Whether a relevant items requirements are broken. */
bool isBroken() const;
+
+ /** This includes \c unlocked broken patches, as well as those already
+ * selected to be installed (otherwise classified as \c satisfied).
+ */
+ bool isNeeded() const;
+
+ /** Broken (needed) but locked patches. */
+ bool isUnwanted() const;
//@}
//@}