summaryrefslogtreecommitdiff
path: root/install.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-07-19 22:32:36 +0000
committerewt <devnull@localhost>1996-07-19 22:32:36 +0000
commit5d1c48a5a09f4b33b496d8d4fb0f3386ab6df998 (patch)
tree24966b1e3142bd713fd51c4ed783cd0f59010777 /install.c
parentd597761fe0c1d56c47a7ee73e9c6e730baae4704 (diff)
downloadlibrpm-tizen-5d1c48a5a09f4b33b496d8d4fb0f3386ab6df998.tar.gz
librpm-tizen-5d1c48a5a09f4b33b496d8d4fb0f3386ab6df998.tar.bz2
librpm-tizen-5d1c48a5a09f4b33b496d8d4fb0f3386ab6df998.zip
fixed hashing for multiple packages
CVS patchset: 898 CVS date: 1996/07/19 22:32:36
Diffstat (limited to 'install.c')
-rw-r--r--install.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/install.c b/install.c
index c265691fb..623989b64 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);
}
}