- fix a case of solutionelement duplication
authorMichael Schroeder <mls@suse.de>
Fri, 9 Mar 2012 12:53:42 +0000 (13:53 +0100)
committerMichael Schroeder <mls@suse.de>
Fri, 9 Mar 2012 12:53:42 +0000 (13:53 +0100)
src/problems.c

index 33bb0992ff31f32eb20cea7b0ce36d002af61ee3..5a2ae6083bd329c9b8799a7287a2d66f1554d9ed 100644 (file)
@@ -293,7 +293,7 @@ refine_suggestion(Solver *solv, Id *problem, Id sug, Queue *refined, int essenti
        {
          /* just one suggestion, add it to refined list */
          v = disabled.elements[disabledcnt];
-         if (!nfeature)
+         if (!nfeature && v != sug)
            queue_push(refined, v);     /* do not record feature rules */
          solver_disableproblem(solv, v);
          if (v >= solv->updaterules && v < solv->updaterules_end)