summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-04-13 18:52:18 +0000
committerjbj <devnull@localhost>2002-04-13 18:52:18 +0000
commite3c57cf71efb077e28106cdaeb6ecc7910ca7aae (patch)
treee45b6dc86afbbe47d84f154ce1502c5df87d1e29 /tools
parent46bbc20b324f456a9ff104f5e7300215950fb6c9 (diff)
downloadrpm-e3c57cf71efb077e28106cdaeb6ecc7910ca7aae.tar.gz
rpm-e3c57cf71efb077e28106cdaeb6ecc7910ca7aae.tar.bz2
rpm-e3c57cf71efb077e28106cdaeb6ecc7910ca7aae.zip
- merge conflicts into problems, handle as transaction set variable.
CVS patchset: 5402 CVS date: 2002/04/13 18:52:18
Diffstat (limited to 'tools')
-rw-r--r--tools/rpmsort.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/rpmsort.c b/tools/rpmsort.c
index c1aa04f5e..04052f141 100644
--- a/tools/rpmsort.c
+++ b/tools/rpmsort.c
@@ -209,18 +209,19 @@ restart:
if (numFailed) goto exit;
if (!noDeps) {
- rpmProblem conflicts = NULL;
- int numConflicts = 0;
+ rpmProblemSet ps;
- rc = rpmdepCheck(ts, &conflicts, &numConflicts);
+ rc = rpmdepCheck(ts);
- if (conflicts) {
- rpmMessage(RPMMESS_ERROR, _("failed dependencies:\n"));
- printDepProblems(stderr, conflicts, numConflicts);
- conflicts = rpmdepFreeConflicts(conflicts, numConflicts);
+ ps = rpmtsGetProblems(ts);
+ if (ps) {
+ rpmMessage(RPMMESS_ERROR, _("Failed dependencies:\n"));
+ printDepProblems(stderr, ps);
+ ps = rpmProblemSetFree(ps);
rc = -1;
goto exit;
}
+ ps = rpmProblemSetFree(ps);
}
rc = rpmdepOrder(ts);