From: Michael Schroeder Date: Fri, 13 Jan 2023 10:46:40 +0000 (+0100) Subject: Use SOLVER_DECISIONLIST_SORTED in showwhy() X-Git-Tag: 0.7.24~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c7072d4ff9c0d8bb2c2f5d290b1bc075d61d92e;p=thirdparty%2Flibsolv.git Use SOLVER_DECISIONLIST_SORTED in showwhy() --- diff --git a/tools/testsolv.c b/tools/testsolv.c index f628b0d4..e233cf2a 100644 --- a/tools/testsolv.c +++ b/tools/testsolv.c @@ -90,7 +90,7 @@ showwhy(Solver *solv, const char *showwhypkgstr) i = testcase_str2solvid(pool, showwhypkgstr); if (i) - solver_get_decisionlist(solv, i, SOLVER_DECISIONLIST_SOLVABLE, &dq); + solver_get_decisionlist(solv, i, SOLVER_DECISIONLIST_SOLVABLE | SOLVER_DECISIONLIST_SORTED, &dq); else { int selflags = SELECTION_NAME | SELECTION_CANON; @@ -99,7 +99,7 @@ showwhy(Solver *solv, const char *showwhypkgstr) if (!iq.count) printf("No package matches %s\n", showwhypkgstr); queue_empty(&dq); - solver_get_decisionlist_multiple(solv, &iq, SOLVER_DECISIONLIST_SOLVABLE, &dq); + solver_get_decisionlist_multiple(solv, &iq, SOLVER_DECISIONLIST_SOLVABLE | SOLVER_DECISIONLIST_SORTED, &dq); } for (ii = 0; ii < dq.count; ii += 3) {