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);
IdType id() const
Expert backdoor.
bool compareByNVRA(const SolvableType< Derived > &lhs, const Solvable &rhs)
ResStatus & status() const
Returns the current status.
virtual ~SolverQueueItemLock()
virtual SolverQueueItem_Ptr copy(void) const
virtual std::ostream & dumpOn(std::ostream &str) const
IMPL_PTR_TYPE(SATResolver)
Combining sat::Solvable and ResStatus.
::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.
SolverQueueItemLock(const ResPool &pool, const PoolItem &item, bool soft=false)
virtual bool addRule(sat::detail::CQueue &q)
virtual int cmp(SolverQueueItem_constPtr item) const