From: root Date: Tue, 20 Feb 1996 16:00:04 +0000 (+0000) Subject: pass around the passPhrase X-Git-Tag: rpm-4.4-release~5379 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e7309560893527e27e6b3a6067f0f7b1cc607eb;p=platform%2Fupstream%2Frpm.git pass around the passPhrase CVS patchset: 356 CVS date: 1996/02/20 16:00:04 --- diff --git a/build/build.c b/build/build.c index 14777f8..73c727e 100644 --- a/build/build.c +++ b/build/build.c @@ -587,7 +587,7 @@ int verifyList(Spec s) return 0; } -int doBuild(Spec s, int flags) +int doBuild(Spec s, int flags, char *passPhrase) { strcpy(build_subdir, "."); @@ -618,7 +618,7 @@ int doBuild(Spec s, int flags) markBuildTime(); if (flags & RPMBUILD_BINARY) { - if (packageBinaries(s)) { + if (packageBinaries(s, passPhrase)) { return 1; } if (execClean(s)) { @@ -627,7 +627,7 @@ int doBuild(Spec s, int flags) } if (flags & RPMBUILD_SOURCE) { - if (packageSource(s)) { + if (packageSource(s, passPhrase)) { return 1; } } diff --git a/build/pack.c b/build/pack.c index 65ffe1b..7e17a94 100644 --- a/build/pack.c +++ b/build/pack.c @@ -67,7 +67,8 @@ static int generateRPM(char *name, /* name-version-release */ int type, /* source or binary */ Header header, /* the header */ - char *stempdir); /* directory containing sources */ + char *stempdir, /* directory containing sources */ + char *passPhrase); static void resetDocdir(void); static void addDocdir(char *dirname); @@ -76,7 +77,8 @@ static int isDoc(char *filename); int generateRPM(char *name, /* name-version-release */ int type, /* source or binary */ Header header, /* the header */ - char *stempdir) /* directory containing sources */ + char *stempdir, /* directory containing sources */ + char *passPhrase) { unsigned short sigtype; char *archName; @@ -132,7 +134,7 @@ int generateRPM(char *name, /* name-version-release */ /* Generate the signature */ message(MESS_VERBOSE, "Generating signature: %d\n", sigtype); fflush(stdout); - makeSignature(sigtarget, sigtype, fd); + makeSignature(sigtarget, sigtype, fd, passPhrase); /* Append the header and archive */ ifd = open(sigtarget, O_RDONLY); @@ -875,7 +877,7 @@ static char *buildHost(void) return(hostname); } -int packageBinaries(Spec s) +int packageBinaries(Spec s, char *passPhrase) { char name[1024]; char filename[1024]; @@ -1010,7 +1012,7 @@ int packageBinaries(Spec s) /**** Make the RPM ****/ - generateRPM(name, RPMLEAD_BINARY, outHeader, NULL); + generateRPM(name, RPMLEAD_BINARY, outHeader, NULL, passPhrase); freeHeader(outHeader); pr = pr->next; @@ -1021,7 +1023,7 @@ int packageBinaries(Spec s) /**************** SOURCE PACKAGING ************************/ -int packageSource(Spec s) +int packageSource(Spec s, char *passPhrase) { struct sources *source; struct PackageRec *package; @@ -1126,7 +1128,7 @@ int packageSource(Spec s) /**** Make the RPM ****/ sprintf(fullname, "%s-%s-%s", s->name, version, release); - generateRPM(fullname, RPMLEAD_SOURCE, outHeader, tempdir); + generateRPM(fullname, RPMLEAD_SOURCE, outHeader, tempdir, passPhrase); /**** Now clean up ****/ diff --git a/build/pack.h b/build/pack.h index 53857a2..71f39a9 100644 --- a/build/pack.h +++ b/build/pack.h @@ -4,8 +4,8 @@ #include "spec.h" void markBuildTime(void); -int packageBinaries(Spec s); -int packageSource(Spec s); +int packageBinaries(Spec s, char *passPhrase); +int packageSource(Spec s, char *passPhrase); int doRmSource(Spec s); #endif _PACK_H_