From 8c84e22b94ee7048d4583675f1998b28c057649d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 1 Dec 2012 08:10:15 +0100 Subject: [PATCH] xbps_transaction_sort: do not sort removed pkgs; just add them to head. --- lib/transaction_sortdeps.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/transaction_sortdeps.c b/lib/transaction_sortdeps.c index df1826c6..dd346fba 100644 --- a/lib/transaction_sortdeps.c +++ b/lib/transaction_sortdeps.c @@ -324,9 +324,11 @@ xbps_transaction_sort(struct xbps_handle *xhp) goto out; } if (strcmp(tract, "remove") == 0) { - xbps_dbg_printf_append(xhp, "added into head."); + xbps_dbg_printf_append(xhp, "added into head.\n"); TAILQ_INSERT_HEAD(&pkgdep_list, pd, pkgdep_entries); + cnt++; + continue; } else { xbps_dbg_printf_append(xhp, "added into tail."); TAILQ_INSERT_TAIL(&pkgdep_list, pd,