- we're a library, no output to stdout/stderr
authorMichael Schroeder <mls@suse.de>
Tue, 21 Oct 2008 08:55:59 +0000 (08:55 +0000)
committerMichael Schroeder <mls@suse.de>
Tue, 21 Oct 2008 08:55:59 +0000 (08:55 +0000)
src/repodata.c

index 71cd5cb..e083bea 100644 (file)
@@ -958,22 +958,11 @@ dataiterator_init(Dataiterator *di, Pool *pool, Repo *repo, Id p, Id keyname, co
 {
   memset(di, 0, sizeof(*di));
   di->pool = pool;
-  if (!pool)
+  if (!pool || (repo && repo->pool != pool))
     {
-      fprintf(stderr, "dataiterator_init: no Pool given\n");
       di->state = di_bye;
       return -1;
     }
-  if (repo)
-    {
-      if (repo->pool != pool)
-       {
-         fprintf(stderr, "dataiterator_init: repo from different pool\n");
-         di->state = di_bye;
-         return -1;
-       }
-      
-    }
   if (match)
     {
       int error;