return as soon as a dep loop is found
authorewt <devnull@localhost>
Thu, 16 Apr 1998 16:23:19 +0000 (16:23 +0000)
committerewt <devnull@localhost>
Thu, 16 Apr 1998 16:23:19 +0000 (16:23 +0000)
CVS patchset: 2091
CVS date: 1998/04/16 16:23:19

lib/depends.c

index 993da74..f980314 100644 (file)
@@ -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;
            }
        }
     }