solver_splitprovides: only check lazywhatprovides when the pool->whatprovides entry...
authorMichael Schroeder <mls@suse.de>
Wed, 5 Jun 2013 10:33:06 +0000 (12:33 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 5 Jun 2013 10:33:06 +0000 (12:33 +0200)
Otherwise splitprovides don't work when standard file locations are used.

src/solver.c

index 052c834..12c91e0 100644 (file)
@@ -65,7 +65,7 @@ solver_splitprovides(Solver *solv, Id dep)
    * for installed packages and check the lazywhatprovidesq (ignoring the REL_WITH part, but
    * we filter the package name further down anyway).
    */
-  if (pool->addedfileprovides == 1 && !ISRELDEP(rd->evr))
+  if (pool->addedfileprovides == 1 && !ISRELDEP(rd->evr) && !pool->whatprovides[rd->evr])
     pp = pool_searchlazywhatprovidesq(pool, rd->evr);
   else
     pp = pool_whatprovides(pool, dep);