-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stefan Schubert wrote:
Hi, apart from the solver call "resolvePool" ( collect all transactions from the pool, solving this transactions and writing the result back to pool) the solver can work off a given request queue too:
/** * Resolve package dependencies: * * The solver works off the given queue and writes back the solution * to pool. * * Returns "true" on success (i.e., if there were no problems that * need user interaction) and "false" if there were problems. In * the latter case, use problems() and later applySolutions() * below. **/ bool resolveQueue (solver::detail::SolverQueueItemList & queue);
Can resolveQueue and resolvePool be used together? I mean, if i use a few addRequires(), then a collect a few QueueItems, then call resolveQueue() and then resolvePool()? Should pose no problem, or?
The queue can have elements which are described in the following classes:
base class: SolverQueueItem.h
SolverQueueItemDelete.h SolverQueueItemInstall.h SolverQueueItemLock.h SolverQueueItemInstallOneOf.h SolverQueueItemUpdate.h
Known problems: - The update and InstallOneOf request does not work correctly. - The error messages are too abstract now for the user.
Is this corrected by now? Esp. the update :O)
(Jano, you can start implementation now :-) )
Ouch, almost one year passed from 'now' :O) - ------------- BTW: apart from this, we will need even more rich solve API, e.g. something to: - - install specific name AND version (AND arch, AND from specific repo) - - install specific capability with specific arch, repo (version we already handle). - - plus some more - i'll try to get together a complete list. Currently zypper handles this by itself, but it's bug-prone, as things in libzypp change (e.g. priorities introduced), and the code is not shared this way. - -- cheers, jano Ján Kupec YaST team - ---------------------------------------------------------(PGP)--- Key ID: 637EE901 Fingerprint: 93B9 C79B 2D20 51C3 800B E09B 8048 46A6 637E E901 - ---------------------------------------------------------(IRC)--- Server: irc.freenode.net Nick: jniq Channels: #zypp #yast #suse #susecz - ---------------------------------------------------------(EOF)--- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkm1AdIACgkQgEhGpmN+6QF4MACdFi90+aCZS/xOXer0PkQFP22O S2QAn0xiWtcZ9un2SbnZ5wHggmfY3v/I =8hEP -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org