From 78a3f3065e93f742179233e139090b3e2c1114ae Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 21 Dec 2009 12:30:04 +0200 Subject: [PATCH] Save pointer to ts element in the tsort info struct --- lib/order.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/order.c b/lib/order.c index 66da919..5675843 100644 --- a/lib/order.c +++ b/lib/order.c @@ -39,6 +39,7 @@ struct relation_s { typedef struct relation_s * relation; struct tsortInfo_s { + rpmte te; int tsi_count; // #pkgs this pkg requires int tsi_qcnt; // #pkgs requiring this package int tsi_reqx; // requires Idx/mark as (queued/loop) @@ -605,6 +606,7 @@ int rpmtsOrder(rpmts ts) rpmalMakeIndex(erasedPackages); for (int i = 0; i < nelem; i++) { + sortInfo[i].te = ts->order[i]; rpmteSetTSI(ts->order[i], &sortInfo[i]); } -- 2.7.4