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:
parent
01f323c74c
commit
3dfb7d4b01
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user