From: ewt Date: Fri, 19 Jul 1996 22:32:36 +0000 (+0000) Subject: fixed hashing for multiple packages X-Git-Tag: rpm-4.4-release~4837 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d1c48a5a09f4b33b496d8d4fb0f3386ab6df998;p=platform%2Fupstream%2Frpm.git fixed hashing for multiple packages CVS patchset: 898 CVS date: 1996/07/19 22:32:36 --- diff --git a/install.c b/install.c index c265691..623989b 100644 --- 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); } }