fixed hashing for multiple packages
authorewt <devnull@localhost>
Fri, 19 Jul 1996 22:32:36 +0000 (22:32 +0000)
committerewt <devnull@localhost>
Fri, 19 Jul 1996 22:32:36 +0000 (22:32 +0000)
CVS patchset: 898
CVS date: 1996/07/19 22:32:36

install.c

index c265691..623989b 100644 (file)
--- a/install.c
+++ b/install.c
@@ -67,6 +67,8 @@ static int installPackages(char * rootdir, char ** packages, char * location,
     for (i = 0, filename = packages; i < numPackages; i++, filename++) {
        if (!*filename) continue;
 
+       hashesPrinted = 0;
+
        fd = open(*filename, O_RDONLY);
        if (fd < 0) {
            fprintf(stderr, "error: cannot open file %s\n", *filename);
@@ -97,7 +99,6 @@ static int installPackages(char * rootdir, char ** packages, char * location,
                        "just testing\n");
                rc = 0;
            } else {
-               hashesPrinted = 0;
                rc = rpmInstallSourcePackage(rootdir, fd, NULL);
            }
        }