- fix copy&paste error
authorMichael Schroeder <mls@suse.de>
Mon, 20 Feb 2012 16:46:46 +0000 (17:46 +0100)
committerMichael Schroeder <mls@suse.de>
Mon, 20 Feb 2012 16:46:46 +0000 (17:46 +0100)
ext/repo_helix.c
ext/testcase.c

index 317f80c..66a975e 100644 (file)
@@ -734,7 +734,7 @@ endElement(void *userData, const char *name)
       pd->version = 0;
       pd->release = 0;
       /* use highest evr */
-      if (!s->evr || pool_evrcmp(pool, s->evr, evr, EVRCMP_MATCH_RELEASE) <= 0)
+      if (!s->evr || pool_evrcmp(pool, s->evr, evr, EVRCMP_COMPARE) <= 0)
        s->evr = evr;
       break;
     case STATE_EPOCH:
index 9afa230..16159ef 100644 (file)
@@ -876,7 +876,7 @@ finish_solvable(Pool *pool, Repodata *data, Solvable *s, char *filelist, int nfi
          p[-1] = '/'; 
          if (!did)
            did = repodata_str2dir(data, "/", 1);
-         repodata_add_dirstr(data, handle, SOLVABLE_FILELIST, did, p);
+         repodata_add_dirstr(data, s - pool->solvables, SOLVABLE_FILELIST, did, p);
        }
     }
   if (s->name && s->arch != ARCH_SRC && s->arch != ARCH_NOSRC)