- implement SEARCH_ALL_REPOS
authorMichael Schroeder <mls@suse.de>
Wed, 15 Oct 2008 11:08:26 +0000 (11:08 +0000)
committerMichael Schroeder <mls@suse.de>
Wed, 15 Oct 2008 11:08:26 +0000 (11:08 +0000)
src/repodata.c

index 20a41af..8cd13b1 100644 (file)
@@ -960,8 +960,10 @@ dataiterator_init(Dataiterator *di, Repo *repo, Id p, Id keyname, const char *ma
   if (p)
     flags |= SEARCH_THISSOLVID;
   di->flags = flags;
-  if (repo)
+  if (repo && !(flags & SEARCH_ALL_REPOS))
     di->repoid = -1;
+  else
+    di->repo = di->pool->repos[0];
   if (match)
     datamatcher_init(&di->matcher, di->pool, match, flags);
   if (p == SOLVID_POS)