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: tznext/4.11.0.1.tizen20130304~9182 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a3add1327ae2f4050d33606a78b883a3730dace;p=tools%2Flibrpm-tizen.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,