transaction_sort: if curdep == curpkg don't do any sorting, it's sorted already.
This commit is contained in:
@@ -236,6 +236,11 @@ again:
|
|||||||
if (pkgdepidx < curpkgidx) {
|
if (pkgdepidx < curpkgidx) {
|
||||||
xbps_dbg_printf_append(xhp, "already sorted.\n");
|
xbps_dbg_printf_append(xhp, "already sorted.\n");
|
||||||
pkgdep_release(lpd);
|
pkgdep_release(lpd);
|
||||||
|
} else if (pd == pdn) {
|
||||||
|
/*
|
||||||
|
* Processing same pkg, just continue.
|
||||||
|
*/
|
||||||
|
xbps_dbg_printf_append(xhp, "already sorted.\n");
|
||||||
} else {
|
} else {
|
||||||
/*
|
/*
|
||||||
* Remove package dependency from list and move
|
* Remove package dependency from list and move
|
||||||
|
Reference in New Issue
Block a user