From: Michael Schroeder Date: Mon, 20 Feb 2012 16:46:46 +0000 (+0100) Subject: - fix copy&paste error X-Git-Tag: BASE-SuSE-Code-12_2-Branch~151 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a028057f4b916c9d68e1f8cd908b4e26bd3456d;p=thirdparty%2Flibsolv.git - fix copy&paste error --- diff --git a/ext/repo_helix.c b/ext/repo_helix.c index 317f80cc..66a975ea 100644 --- a/ext/repo_helix.c +++ b/ext/repo_helix.c @@ -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: diff --git a/ext/testcase.c b/ext/testcase.c index 9afa2303..16159ef5 100644 --- a/ext/testcase.c +++ b/ext/testcase.c @@ -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)