From: Panu Matilainen Date: Mon, 9 Jul 2007 08:47:48 +0000 (+0300) Subject: Fix ordering with --nodeps. X-Git-Tag: tznext/4.11.0.1.tizen20130304~5870 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ad747cd55aa4ae0e6f773984573186d2891d91f;p=tools%2Flibrpm-tizen.git 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... --- diff --git a/lib/depends.c b/lib/depends.c index 3d16ca2..13150da 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);