]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
- 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 c20ec0619b10bd14058f2a02d83187d7ab266cfb..7ce87f43d887d132147d65ffdf4240f6dbd70f78 100644 (file)
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+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
 
index 7cefd1a5ea37f9f6236a6bac5ea350d312109185..f188026d7d547f4bfa51734382ae13c49064684c 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);
                }
            }