transaction_sort: if curdep == curpkg don't do any sorting, it's sorted already.

This commit is contained in:
Juan RP 2014-07-06 09:32:06 +02:00
parent 9349e5fc40
commit 0385812a5a

View File

@ -236,6 +236,11 @@ again:
if (pkgdepidx < curpkgidx) {
xbps_dbg_printf_append(xhp, "already sorted.\n");
pkgdep_release(lpd);
} else if (pd == pdn) {
/*
* Processing same pkg, just continue.
*/
xbps_dbg_printf_append(xhp, "already sorted.\n");
} else {
/*
* Remove package dependency from list and move