summaryrefslogtreecommitdiff
path: root/build.c
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 /build.c
parent46bbc20b324f456a9ff104f5e7300215950fb6c9 (diff)
downloadlibrpm-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.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/build.c b/build.c
index 1a577f95a..f24322e9a 100644
--- a/build.c
+++ b/build.c
@@ -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);