diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-12-21 12:30:04 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-12-21 12:30:04 +0200 |
commit | 78a3f3065e93f742179233e139090b3e2c1114ae (patch) | |
tree | b5dffd01180e2fb08b997a8a78557fb5ea6d75ae /lib | |
parent | 134c19d9fab97a7c03149893c356e6fa794c0318 (diff) | |
download | rpm-78a3f3065e93f742179233e139090b3e2c1114ae.tar.gz rpm-78a3f3065e93f742179233e139090b3e2c1114ae.tar.bz2 rpm-78a3f3065e93f742179233e139090b3e2c1114ae.zip |
Save pointer to ts element in the tsort info struct
Diffstat (limited to 'lib')
-rw-r--r-- | lib/order.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/order.c b/lib/order.c index 66da919cb..567584342 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]); } |