xbps_transaction_sort: do not sort removed pkgs; just add them to head.

This commit is contained in:
Juan RP 2012-12-01 08:10:15 +01:00
parent f45352dbf8
commit 8c84e22b94

View File

@ -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,