From df0ea9a9e997e4590446c98ecbea7ee069fd9ce7 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Thu, 9 Oct 2008 14:21:15 +0000 Subject: [PATCH] - is searching for REPOENTRY POS, select the right repo and repodata in the iterator --- src/repodata.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/repodata.c b/src/repodata.c index dfd7a51..da3cea1 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; } -- 2.7.4