From 272e203dabf2ebbd2b3a75a53415d87928d5f820 Mon Sep 17 00:00:00 2001 From: ewt Date: Thu, 16 Apr 1998 16:23:19 +0000 Subject: [PATCH] return as soon as a dep loop is found CVS patchset: 2091 CVS date: 1998/04/16 16:23:19 --- lib/depends.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/depends.c b/lib/depends.c index 993da74..f980314 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -862,6 +862,9 @@ static int addOrderedPack(rpmDependencies rpmdep, rc = addOrderedPack(rpmdep, match, ordering, orderNumPtr, selected, selectionClass, 1, errorStack); + + /* FIXME: I suspect we should free things here */ + if (rc) return 1; } } } -- 2.7.4