From: ewt Date: Wed, 7 Apr 1999 06:04:42 +0000 (+0000) Subject: install callbacks didn't return proper total size for source packages X-Git-Tag: rpm-4.4-release~2957 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a3add1327ae2f4050d33606a78b883a3730dace;p=platform%2Fupstream%2Frpm.git install callbacks didn't return proper total size for source packages CVS patchset: 2962 CVS date: 1999/04/07 06:04:42 --- diff --git a/lib/install.c b/lib/install.c index f579100..a77973d 100644 --- a/lib/install.c +++ b/lib/install.c @@ -764,6 +764,10 @@ static int installSources(Header h, const char * rootdir, FD_t fd, currDir = realloc(currDir, currDirLen); } + if (!headerGetEntry(h, RPMTAG_ARCHIVESIZE, NULL, + (void *) &archiveSizePtr, NULL)) + archiveSizePtr = NULL; + chdir(realSourceDir); if (installArchive(fd, fileCount > 0 ? files : NULL, fileCount, notify, notifyData, NULL, h,