From 3ad747cd55aa4ae0e6f773984573186d2891d91f Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 9 Jul 2007 11:47:48 +0300 Subject: [PATCH] Fix ordering with --nodeps. This adds unneeded second rpmalMakeIndex() call to normal path, the index creation needs some kind of tracking mechanism to avoid this... --- lib/depends.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/depends.c b/lib/depends.c index 3d16ca2e7..13150daba 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -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);