Fix ordering with --nodeps.
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 9 Jul 2007 08:47:48 +0000 (11:47 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 9 Jul 2007 08:47:48 +0000 (11:47 +0300)
This adds unneeded second rpmalMakeIndex() call to normal path, the index
creation needs some kind of tracking mechanism to avoid this...
(transplanted from 2ea62bbfd19e3177c7314e3271a8389bffafde80)

lib/depends.c

index 3d16ca2..13150da 100644 (file)
@@ -1234,9 +1234,11 @@ int rpmtsOrder(rpmts ts)
     int qlen;
     int i, j;
 
-#ifdef DYING
+    /*
+     * XXX FIXME: this gets needlesly called twice on normal usage patterns,
+     * should track the need for generating the index somewhere
+     */
     rpmalMakeIndex(ts->addedPackages);
-#endif
 
     (void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_ORDER), 0);