From f39d2432f74bdc328ceafa8abc6cac517e02c73b Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 23 Jun 2008 16:57:51 +0300 Subject: [PATCH] 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" --- lib/depends.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/depends.c b/lib/depends.c index 6ef8af1..f4ff355 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -1059,7 +1059,6 @@ int rpmtsOrder(rpmts ts) int numOrderList; int npeer = 128; /* XXX more than deep enough for now. */ int *peer = xcalloc(npeer, sizeof(*peer)); - int nrescans = 10; int _printed = 0; char deptypechar; rpm_loff_t tsbytes; @@ -1387,7 +1386,7 @@ rescan: /* If a relation was eliminated, then continue sorting. */ /* XXX TODO: add control bit. */ - if (nzaps && nrescans-- > 0) { + if (nzaps) { rpmlog(RPMLOG_DEBUG, "========== continuing tsort ...\n"); goto rescan; } -- 2.7.4