summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-05-16 16:55:21 +0000
committerjbj <devnull@localhost>2002-05-16 16:55:21 +0000
commit076a6e29c5c8a35a5f78ae2a15339d030cfe2fdf (patch)
treec79f91a35a1134d5cd67394c534e804405697d61 /build.c
parentbc9d22eeb9034966654091306e3e3fc9a9dd7c71 (diff)
downloadrpm-076a6e29c5c8a35a5f78ae2a15339d030cfe2fdf.tar.gz
rpm-076a6e29c5c8a35a5f78ae2a15339d030cfe2fdf.tar.bz2
rpm-076a6e29c5c8a35a5f78ae2a15339d030cfe2fdf.zip
- opaque (well mostly) rpmTransactionSet using methods.
CVS patchset: 5437 CVS date: 2002/05/16 16:55:21
Diffstat (limited to 'build.c')
-rw-r--r--build.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/build.c b/build.c
index f24322e9a..cb25adfbd 100644
--- a/build.c
+++ b/build.c
@@ -30,9 +30,10 @@ static int checkSpec(rpmTransactionSet ts, Header h)
&& !headerIsEntry(h, RPMTAG_CONFLICTNAME))
return 0;
- rc = rpmtransAddPackage(ts, h, NULL, 0, NULL);
+ rc = rpmtsAddPackage(ts, h, NULL, 0, NULL);
+
+ rc = rpmtsCheck(ts);
- rc = rpmdepCheck(ts);
ps = rpmtsGetProblems(ts);
if (rc == 0 && ps) {
rpmMessage(RPMMESS_ERROR, _("Failed build dependencies:\n"));
@@ -42,7 +43,7 @@ static int checkSpec(rpmTransactionSet ts, Header h)
ps = rpmProblemSetFree(ps);
/* XXX nuke the added package. */
- rpmtransClean(ts);
+ rpmtsClean(ts);
return rc;
}