diff options
Diffstat (limited to 'build.c')
-rw-r--r-- | build.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; } |