]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
- ignore obsoletes in trivial test for now
authorMichael Schroeder <mls@suse.de>
Wed, 14 May 2008 13:04:02 +0000 (13:04 +0000)
committerMichael Schroeder <mls@suse.de>
Wed, 14 May 2008 13:04:02 +0000 (13:04 +0000)
src/pool.c

index 967e4f6425e1b7a7c142c6ea11c77237e3698714..306bc77be4e1ba3f21efe24895095ed2420e4fcd 100644 (file)
@@ -1344,12 +1344,12 @@ void
 pool_trivial_installable(Pool *pool, Repo *oldinstalled, Map *installedmap, Queue *pkgs, Queue *res)
 {
   int i, r, m, did;
-  Id p, *dp, con, *conp, req, *reqp, obs, *obsp, *pp;
+  Id p, *dp, con, *conp, req, *reqp;
   unsigned char *map;
   Solvable *s;
 
   map = sat_calloc(pool->nsolvables, 1);
-  for (p = 0; p < pool->nsolvables; p++)
+  for (p = 1; p < pool->nsolvables; p++)
     {
       if (!MAPTST(installedmap, p))
        continue;
@@ -1423,9 +1423,10 @@ pool_trivial_installable(Pool *pool, Repo *oldinstalled, Map *installedmap, Queu
          if (con)
            continue;   /* found a conflict */
        }
+#if 0
       if (s->repo && s->repo != oldinstalled)
        {
-         Id p2;
+         Id p2, obs, *obsp, *pp;
          Solvable *s2;
          if (s->obsoletes)
            {
@@ -1453,6 +1454,7 @@ pool_trivial_installable(Pool *pool, Repo *oldinstalled, Map *installedmap, Queu
          if (p2)
            continue;
        }
+#endif
       if (m != map[p])
        {
           map[p] = m;