xbps_transaction_sort: do not sort removed pkgs; just add them to head.
This commit is contained in:
parent
f45352dbf8
commit
8c84e22b94
@ -324,9 +324,11 @@ xbps_transaction_sort(struct xbps_handle *xhp)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
if (strcmp(tract, "remove") == 0) {
|
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,
|
TAILQ_INSERT_HEAD(&pkgdep_list, pd,
|
||||||
pkgdep_entries);
|
pkgdep_entries);
|
||||||
|
cnt++;
|
||||||
|
continue;
|
||||||
} else {
|
} else {
|
||||||
xbps_dbg_printf_append(xhp, "added into tail.");
|
xbps_dbg_printf_append(xhp, "added into tail.");
|
||||||
TAILQ_INSERT_TAIL(&pkgdep_list, pd,
|
TAILQ_INSERT_TAIL(&pkgdep_list, pd,
|
||||||
|
Loading…
Reference in New Issue
Block a user