diff options
-rw-r--r-- | lib/rpmts.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/rpmts.c b/lib/rpmts.c index 970a5d374..d7d7e3561 100644 --- a/lib/rpmts.c +++ b/lib/rpmts.c @@ -469,18 +469,10 @@ rpmps rpmtsProblems(rpmts ts) rpmtsi pi = rpmtsiInit(ts); rpmte p; - /* XXX TODO this cries for rpmpsMerge() */ while ((p = rpmtsiNext(pi, 0)) != NULL) { rpmps teprobs = rpmteProblems(p); - if (teprobs) { - rpmpsi psi = rpmpsInitIterator(teprobs); - while (rpmpsNextIterator(psi) >= 0) { - rpmProblem prob = rpmpsGetProblem(psi); - rpmpsAppendProblem(ps, prob); - } - rpmpsFreeIterator(psi); - rpmpsFree(teprobs); - } + rpmpsMerge(ps, teprobs); + rpmpsFree(teprobs); } pi = rpmtsiFree(pi); return ps; |