Don't include packages multiple times in ordering
authorewt <devnull@localhost>
Tue, 8 Jul 1997 18:48:36 +0000 (18:48 +0000)
committerewt <devnull@localhost>
Tue, 8 Jul 1997 18:48:36 +0000 (18:48 +0000)
CVS patchset: 1734
CVS date: 1997/07/08 18:48:36

lib/depends.c

index c5977d2..6636ab0 100644 (file)
@@ -787,6 +787,10 @@ static int addOrderedPack(rpmDependencies rpmdep,
                /* let this package satisfy its own predependencies */
                if (match == package) continue;
 
+               /* the package has already been selected */
+               if (selected[match - rpmdep->addedPackages.list] == SELECTED)
+                   continue;
+
                if (addOrderedPack(rpmdep, match, ordering, orderNumPtr,
                                   selected, 1)) return 1;
            }