From 48b46d3fc0384808cf214c3fbae366088b71402e Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Fri, 8 Apr 2016 14:46:44 +0200 Subject: [PATCH] Make SOLVER_REASON_CLEANDEPS_ERASE introspection reason work again Fixes issue#127 --- src/solver.c | 5 +++++ 1 file changed, 5 insertions(+) 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 */ -- 2.47.3