]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
- 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 317f80cc1cbd77c7b6d68248115e8dbd59dcdc4a..66a975ea5b4cd6f06f50bc8a5ea7d596fab12dd0 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 9afa23036c9df3323adf1df725b310f5250d01d0..16159ef58a56a2cc576df44851f8950c816e5182 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)