From: Michael Schroeder Date: Fri, 8 Apr 2016 12:46:44 +0000 (+0200) Subject: Make SOLVER_REASON_CLEANDEPS_ERASE introspection reason work again X-Git-Tag: 0.6.20~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48b46d3fc0384808cf214c3fbae366088b71402e;p=thirdparty%2Flibsolv.git Make SOLVER_REASON_CLEANDEPS_ERASE introspection reason work again Fixes issue#127 --- diff --git a/src/solver.c b/src/solver.c index c1fcd582..d5989cc5 100644 --- a/src/solver.c +++ b/src/solver.c @@ -4477,6 +4477,11 @@ solver_describe_decision(Solver *solv, Id p, Id *infop) return SOLVER_REASON_CLEANDEPS_ERASE; return SOLVER_REASON_KEEP_INSTALLED; } + if (i < solv->decisioncnt_weak) + { + if (why == 0 && pp < 0) + return SOLVER_REASON_CLEANDEPS_ERASE; + } if (why > 0) return SOLVER_REASON_RESOLVE; /* weak or orphaned */