From: Michael Schroeder Date: Thu, 9 Oct 2008 14:21:15 +0000 (+0000) Subject: - is searching for REPOENTRY POS, select the right repo and repodata X-Git-Tag: BASE-SuSE-Code-12_1-Branch~308^2~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df0ea9a9e997e4590446c98ecbea7ee069fd9ce7;p=thirdparty%2Flibsolv.git - is searching for REPOENTRY POS, select the right repo and repodata in the iterator --- diff --git a/src/repodata.c b/src/repodata.c index dfd7a512..da3cea16 100644 --- a/src/repodata.c +++ b/src/repodata.c @@ -964,6 +964,13 @@ dataiterator_init(Dataiterator *di, Repo *repo, Id p, Id keyname, const char *ma di->repoid = -1; if (match) datamatcher_init(&di->matcher, di->pool, match, flags); + if (p == REPOENTRY_POS) + { + di->repo = di->pool->pos.repo; + di->data = di->repo->repodata + di->pool->pos.repodataid; + di->repoid = -1; + di->repodataid = -1; + } di->state = di_enterrepo; }