Increment needid[] of the right member.
authorMichael Matz <matz@suse.de>
Tue, 29 Jan 2008 20:55:09 +0000 (20:55 +0000)
committerMichael Matz <matz@suse.de>
Tue, 29 Jan 2008 20:55:09 +0000 (20:55 +0000)
tools/repo_write.c

index dce30d5faab6e8a546a875536a4f53cb903e0968..71eccdf1862c74bbd29c48e9a49a7f08aa32f9c3 100644 (file)
@@ -977,7 +977,7 @@ for (i = 1; i < cbdata.nmykeys; i++)
       if (cbdata.keymap[SOLVABLE_EVR])
        {
           *sp++ = SOLVABLE_EVR;
-         needid[s->arch].need++;
+         needid[s->evr].need++;
        }
       if (s->vendor && cbdata.keymap[SOLVABLE_VENDOR])
        {