pass around the passPhrase
authorroot <devnull@localhost>
Tue, 20 Feb 1996 16:00:04 +0000 (16:00 +0000)
committerroot <devnull@localhost>
Tue, 20 Feb 1996 16:00:04 +0000 (16:00 +0000)
CVS patchset: 356
CVS date: 1996/02/20 16:00:04

build/build.c
build/pack.c
build/pack.h

index 14777f8..73c727e 100644 (file)
@@ -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;
        }
     }
index 65ffe1b..7e17a94 100644 (file)
@@ -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 ****/
 
index 53857a2..71f39a9 100644 (file)
@@ -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_