Author: kkaempf Date: Mon Oct 20 17:47:30 2008 New Revision: 11421 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11421&view=rev Log: work around strange satsolver api Modified: trunk/sat-solver/bindings/dataiterator.i Modified: trunk/sat-solver/bindings/dataiterator.i URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/dataiterator.... ============================================================================== --- trunk/sat-solver/bindings/dataiterator.i (original) +++ trunk/sat-solver/bindings/dataiterator.i Mon Oct 20 17:47:30 2008 @@ -36,7 +36,12 @@ Dataiterator *di = calloc(1, sizeof( Dataiterator )); Solvable *s = 0; /* cope with pool or repo being NULL */ - if (!pool && repo) pool = repo->pool; + if (!pool) { + if (!repo) { + /* raise exception (FIXME) */ + } + pool = repo->pool; + } if (xs) s = xsolvable_solvable(xs); dataiterator_init(di, pool, repo, s ? s - s->repo->pool->solvables : 0, keyname && pool ? str2id(pool, keyname, 0) : 0, match, option); return di; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org