summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-10-27 22:31:10 +0000
committerjbj <devnull@localhost>2001-10-27 22:31:10 +0000
commitc1d367a0941b3778a84252691bbd294a0a8be4b7 (patch)
tree5faac19a37b8826954b34fcfc8270155cbee1a18 /build.c
parent7402ce15464cc59617177a2af2799c36c8ef60fd (diff)
downloadrpm-c1d367a0941b3778a84252691bbd294a0a8be4b7.tar.gz
rpm-c1d367a0941b3778a84252691bbd294a0a8be4b7.tar.bz2
rpm-c1d367a0941b3778a84252691bbd294a0a8be4b7.zip
- transaction sets cerated in cli main.
- no-brainer refcounts for ts object. CVS patchset: 5136 CVS date: 2001/10/27 22:31:10
Diffstat (limited to 'build.c')
-rw-r--r--build.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/build.c b/build.c
index dd03ac620..bd281269e 100644
--- a/build.c
+++ b/build.c
@@ -280,17 +280,14 @@ exit:
return rc;
}
-int build(const char * arg, BTA_t ba, const char * rcfile)
+int build(rpmTransactionSet ts, const char * arg, BTA_t ba, const char * rcfile)
{
- rpmTransactionSet ts;
char *t, *te;
int rc = 0;
char * targets = ba->targets;
#define buildCleanMask (RPMBUILD_RMSOURCE|RPMBUILD_RMSPEC)
int cleanFlags = ba->buildAmount & buildCleanMask;
- ts = rpmtransCreateSet(NULL, NULL);
-
if (targets == NULL) {
rc = buildForTarget(ts, arg, ba);
goto exit;
@@ -328,7 +325,5 @@ exit:
rpmFreeMacros(NULL);
(void) rpmReadConfigFiles(rcfile, NULL);
- ts = rpmtransFree(ts);
-
return rc;
}