- do not add rules that are always fulfilled
authorMichael Schroeder <mls@suse.de>
Thu, 25 Oct 2007 17:18:26 +0000 (17:18 +0000)
committerMichael Schroeder <mls@suse.de>
Thu, 25 Oct 2007 17:18:26 +0000 (17:18 +0000)
src/pool.c
src/solver.c

index 4ccddc4..0c0a279 100644 (file)
@@ -401,9 +401,9 @@ pool_queuetowhatprovides(Pool *pool, Queue *q)
 /******************************************************************************/
 
 /*
- * addrangedep
+ * addrelproviders
  * 
- * add RangeDep to whatprovides
+ * add packages fulfilling the relation to whatprovides array
  * no exact providers, do range match
  * 
  */
index 059df13..f147b96 100644 (file)
@@ -879,6 +879,9 @@ addrulesforsolvable(Solver *solv, Solvable *s, Map *m)
                    printf(">!> !unflag %s-%s.%s[%s]\n", id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch), source_name(s->source));
                  continue;
                }
+
+             if (*dp == SYSTEMSOLVABLE)                /* always installed */
+               continue;
   #if 0
              printf("addrule %s-%s.%s %s %d %d\n", id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch), dep2str(pool, req), -n, dp - pool->whatprovidesdata);
              for (i = 0; dp[i]; i++)