- don't match the first idarray element twice
authorMichael Schroeder <mls@suse.de>
Fri, 24 Oct 2008 10:11:17 +0000 (10:11 +0000)
committerMichael Schroeder <mls@suse.de>
Fri, 24 Oct 2008 10:11:17 +0000 (10:11 +0000)
src/repodata.c

index c32f248..d3b9b4a 100644 (file)
@@ -1242,7 +1242,8 @@ dataiterator_step(Dataiterator *di)
            goto di_nextsolvablekey;
          di->kv.id = di->idp[0];
          di->kv.num = di->idp[0];
-         if (!di->kv.eof && !di->idp[1])
+         di->idp++;
+         if (!di->kv.eof && !di->idp[0])
            di->kv.eof = 1;
          di->kv.entry = 0;
          if (di->kv.eof)