diff options
author | jbj <devnull@localhost> | 2001-10-27 22:31:10 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-10-27 22:31:10 +0000 |
commit | c1d367a0941b3778a84252691bbd294a0a8be4b7 (patch) | |
tree | 5faac19a37b8826954b34fcfc8270155cbee1a18 /build.c | |
parent | 7402ce15464cc59617177a2af2799c36c8ef60fd (diff) | |
download | rpm-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.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; } |