22#include <solv/solver.h>
25#define ZYPP_USE_RESOLVER_INTERNALS
27#include <zypp/base/Logger.h>
50 os <<
"[" << (
_soft?
"Soft":
"") <<
"Lock: " <<
77 ERR <<
"Lock : " <<
_item <<
" not found" << endl;
80 MIL <<
"Lock " <<
_item <<
" with the SAT-Pool ID: " <<
id << endl;
83 queue_push( &(q), SOLVER_INSTALL | SOLVER_SOLVABLE | SOLVER_WEAK );
85 queue_push( &(q), SOLVER_INSTALL | SOLVER_SOLVABLE );
89 queue_push( &(q), SOLVER_ERASE | SOLVER_SOLVABLE | SOLVER_WEAK );
91 queue_push( &(q), SOLVER_ERASE | SOLVER_SOLVABLE );
94 queue_push( &(q),
id );
102 new_lock->SolverQueueItem::copy(
this);
104 new_lock->_soft =
_soft;
111 int cmp = this->compare (item);
114 SolverQueueItemLock_constPtr lock = dynamic_pointer_cast<const SolverQueueItemLock>(item);
115 return compareByNVRA (
_item, lock->_item);
Combining sat::Solvable and ResStatus.
ResStatus & status() const
Returns the current status.
IdType id() const
Expert backdoor.
virtual ~SolverQueueItemLock()
virtual SolverQueueItem_Ptr copy(void) const
virtual bool addRule(sat::detail::CQueue &q)
virtual int cmp(SolverQueueItem_constPtr item) const
virtual std::ostream & dumpOn(std::ostream &str) const
SolverQueueItemLock(const ResPool &pool, const PoolItem &item, bool soft=false)
::s_Queue CQueue
Wrapped libsolv C data type exposed as backdoor.
Easy-to use interface to the ZYPP dependency resolver.
Solvable satSolvable() const
Return the corresponding sat::Solvable.
#define IMPL_PTR_TYPE(NAME)