diff options
author | jbj <devnull@localhost> | 2002-04-13 18:52:18 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-04-13 18:52:18 +0000 |
commit | e3c57cf71efb077e28106cdaeb6ecc7910ca7aae (patch) | |
tree | e45b6dc86afbbe47d84f154ce1502c5df87d1e29 /build.c | |
parent | 46bbc20b324f456a9ff104f5e7300215950fb6c9 (diff) | |
download | librpm-tizen-e3c57cf71efb077e28106cdaeb6ecc7910ca7aae.tar.gz librpm-tizen-e3c57cf71efb077e28106cdaeb6ecc7910ca7aae.tar.bz2 librpm-tizen-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 'build.c')
-rw-r--r-- | build.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -23,8 +23,7 @@ static int checkSpec(rpmTransactionSet ts, Header h) /*@globals fileSystem, internalState @*/ /*@modifies ts, h, fileSystem, internalState @*/ { - rpmProblem conflicts; - int numConflicts; + rpmProblemSet ps; int rc; if (!headerIsEntry(h, RPMTAG_REQUIRENAME) @@ -33,15 +32,14 @@ static int checkSpec(rpmTransactionSet ts, Header h) rc = rpmtransAddPackage(ts, h, NULL, 0, NULL); - rc = rpmdepCheck(ts, &conflicts, &numConflicts); - /*@-branchstate@*/ - if (rc == 0 && conflicts) { - rpmMessage(RPMMESS_ERROR, _("failed build dependencies:\n")); - printDepProblems(stderr, conflicts, numConflicts); - conflicts = rpmdepFreeConflicts(conflicts, numConflicts); + rc = rpmdepCheck(ts); + ps = rpmtsGetProblems(ts); + if (rc == 0 && ps) { + rpmMessage(RPMMESS_ERROR, _("Failed build dependencies:\n")); + printDepProblems(stderr, ps); rc = 1; } - /*@=branchstate@*/ + ps = rpmProblemSetFree(ps); /* XXX nuke the added package. */ rpmtransClean(ts); |