Remove artificial limit in dependency loop elimination attempts

- continue processing as long as progress can be made instead of artificial
  hardcoded magic "try ten times"

[rpm.org f39d2432f74bdc328ceafa8abc6cac517e02c73b]
This commit is contained in:
Panu Matilainen 2008-06-23 16:57:51 +03:00 committed by Alexey Tourbin
parent 01f323c74c
commit 3dfb7d4b01

View File

@ -1806,7 +1806,6 @@ int rpmdepOrder(rpmTransactionSet ts)
transactionElement newOrder;
int newOrderCount = 0;
struct orderListIndex * orderList;
int nrescans = 10;
int _printed = 0;
int treex;
int depth;
@ -2036,7 +2035,7 @@ rescan:
/* If a relation was eliminated, then continue sorting. */
/* XXX TODO: add control bit. */
if (nzaps && nrescans-- > 0) {
if (nzaps) {
rpmMessage(RPMMESS_DEBUG, _("========== continuing tsort ...\n"));
goto rescan;
}