- ignore to be dropped orhaned packages when calculating candidates for recommends...
authorMichael Schroeder <mls@suse.de>
Wed, 2 Mar 2011 11:00:57 +0000 (12:00 +0100)
committerMichael Schroeder <mls@suse.de>
Wed, 2 Mar 2011 11:00:57 +0000 (12:00 +0100)
package/libsatsolver.changes
src/solver.c

index c20ec06..7ce87f4 100644 (file)
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Thu Feb 24 17:44:05 CET 2011 - mls@suse.de
+
+- ignore to be dropped orhaned packages when calculating
+  candidates for recommends/supplements installation
+
+-------------------------------------------------------------------
 Wed Feb  2 09:24:42 UTC 2011 - kkaempf@novell.com
 
 - Split off 'applayer' and 'bindings' as a separate package
index 7cefd1a..f188026 100644 (file)
@@ -1722,6 +1722,8 @@ solver_run_sat(Solver *solv, int disablerules, int doweak)
                                }
                              else if (solv->decisionmap[p] == 0)
                                {
+                                 if (solv->dupmap_all && solv->installed && pool->solvables[p].repo == solv->installed && (solv->droporphanedmap_all || (solv->droporphanedmap.size && MAPTST(&solv->droporphanedmap, p - solv->installed->start))))
+                                   continue;
                                  queue_pushunique(&dq, p);
                                }
                            }
@@ -1737,6 +1739,8 @@ solver_run_sat(Solver *solv, int disablerules, int doweak)
                    continue;
                  if (!solver_is_supplementing(solv, s))
                    continue;
+                 if (solv->dupmap_all && solv->installed && s->repo == solv->installed && (solv->droporphanedmap_all || (solv->droporphanedmap.size && MAPTST(&solv->droporphanedmap, i - solv->installed->start))))
+                   continue;
                  queue_push(&dqs, i);
                }
            }