- is searching for REPOENTRY POS, select the right repo and repodata
authorMichael Schroeder <mls@suse.de>
Thu, 9 Oct 2008 14:21:15 +0000 (14:21 +0000)
committerMichael Schroeder <mls@suse.de>
Thu, 9 Oct 2008 14:21:15 +0000 (14:21 +0000)
  in the iterator

src/repodata.c

index dfd7a51..da3cea1 100644 (file)
@@ -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;
 }