summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
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;
}