diff options
author | jbj <devnull@localhost> | 2001-10-23 16:48:20 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-10-23 16:48:20 +0000 |
commit | 3b820b2d5354fffc824218ee3750a1a9435f0a8e (patch) | |
tree | 0e5a9983c429c2369b4069a2f6a09f0b7fccd165 /build.c | |
parent | 01baa77546d1efce05edecfabef82c5610ed559e (diff) | |
download | rpm-3b820b2d5354fffc824218ee3750a1a9435f0a8e.tar.gz rpm-3b820b2d5354fffc824218ee3750a1a9435f0a8e.tar.bz2 rpm-3b820b2d5354fffc824218ee3750a1a9435f0a8e.zip |
- generate an rpm header on the fly for imported pubkeys.
CVS patchset: 5130
CVS date: 2001/10/23 16:48:20
Diffstat (limited to 'build.c')
-rw-r--r-- | build.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -105,12 +105,13 @@ static int isSpecFile(const char * specfile) /** */ -static int buildForTarget(const char * arg, BTA_t ba, - const char * passPhrase, char * cookie) +static int buildForTarget(const char * arg, BTA_t ba) /*@globals rpmGlobalMacroContext, fileSystem, internalState @*/ /*@modifies rpmGlobalMacroContext, fileSystem, internalState @*/ { + const char * passPhrase = ba->passPhrase; + char * cookie = ba->cookie; int buildAmount = ba->buildAmount; const char * buildRootURL = NULL; const char * specFile; @@ -295,8 +296,7 @@ exit: return rc; } -int build(const char * arg, BTA_t ba, - const char * passPhrase, char * cookie, const char * rcfile) +int build(const char * arg, BTA_t ba, const char * rcfile) { char *t, *te; int rc = 0; @@ -305,7 +305,7 @@ int build(const char * arg, BTA_t ba, int cleanFlags = ba->buildAmount & buildCleanMask; if (targets == NULL) { - rc = buildForTarget(arg, ba, passPhrase, cookie); + rc = buildForTarget(arg, ba); goto exit; } @@ -331,7 +331,7 @@ int build(const char * arg, BTA_t ba, /* Read in configuration for target. */ rpmFreeMacros(NULL); (void) rpmReadConfigFiles(rcfile, target); - rc = buildForTarget(arg, ba, passPhrase, cookie); + rc = buildForTarget(arg, ba); if (rc) break; } |