Mailinglist Archive: yast-devel (191 mails)

< Previous Next >
Re: [yast-devel] Package-Bindings
  • From: Klaus Kaempf <kkaempf@xxxxxxx>
  • Date: Wed, 19 Mar 2008 15:46:19 +0100
  • Message-id: <20080319144619.GA1799@xxxxxxxxxxxxx>
* Katarina Machalkova <kmachalkova@xxxxxxx> [Mar 19. 2008 14:28]:

In a loop over all packages in current list, it's done like this:

if ( slbPtr->status() == S_KeepInstalled && slbPtr->hasCandidateObj() )
if (
slbPtr->installedObj()->edition() < slbPtr->candidateObj()->edition()
ok = statusStrategy->keyToStatus( '>', slbPtr, objPtr, newStatus );

Be aware that 'newer edition available' is *not* the correct criterium
for update in the future.
The selection of packagages eligible for update is a (sat-)solver
function, taking solver policies and conflict resolution into account.

It's not probably done in a best possible way ;-) (zypp guys could maybe
provide us with better algorithm), but it works.

Zypp guys will (have to) provide an API for this.

SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG N├╝rnberg)

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >