]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Make SOLVER_REASON_CLEANDEPS_ERASE introspection reason work again
authorMichael Schroeder <mls@suse.de>
Fri, 8 Apr 2016 12:46:44 +0000 (14:46 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 8 Apr 2016 12:46:44 +0000 (14:46 +0200)
Fixes issue#127

src/solver.c

index c1fcd5826827991728b95bebde8c2e89582092fc..d5989cc5f3b8f11e144bad46aabdd477aee6ad3c 100644 (file)
@@ -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 */