Fixes to script runs
authorewt <devnull@localhost>
Mon, 14 Jul 1997 14:48:38 +0000 (14:48 +0000)
committerewt <devnull@localhost>
Mon, 14 Jul 1997 14:48:38 +0000 (14:48 +0000)
CVS patchset: 1735
CVS date: 1997/07/14 14:48:38

lib/install.c

index 15e65e7..a483835 100644 (file)
@@ -451,7 +451,7 @@ int rpmInstallPackage(char * rootdir, rpmdb db, int fd, char * location,
     }
 
     rpmMessage(RPMMESS_DEBUG, "running preinstall script (if any)\n");
-    if (runScript(rootdir, h, RPMTAG_PREIN, scriptArg, 
+    if (runScript(rootdir, h, RPMTAG_PREIN, RPMTAG_PREINPROG, scriptArg, 
                  flags & RPMINSTALL_NOSCRIPTS)) {
        if (replacedList) free(replacedList);
        if (freeFileMem) freeFileMemory(fileMem);
@@ -589,7 +589,7 @@ int rpmInstallPackage(char * rootdir, rpmdb db, int fd, char * location,
 
     rpmMessage(RPMMESS_DEBUG, "running postinstall script (if any)\n");
 
-    if (runScript(rootdir, h, RPMTAG_POSTIN, scriptArg,
+    if (runScript(rootdir, h, RPMTAG_POSTIN, RPMTAG_POSTINPROG, scriptArg,
                  flags & RPMINSTALL_NOSCRIPTS)) {
        return 2;
     }
@@ -629,7 +629,7 @@ static int installArchive(int fd, struct fileInfo * files,
     gzFile stream;
     int rc, i;
     struct cpioFileMapping * map = NULL;
-    int mappedFiles;
+    int mappedFiles = 0;
     char * failedFile;
     struct callbackInfo info;