install callbacks didn't return proper total size for source packages
authorewt <devnull@localhost>
Wed, 7 Apr 1999 06:04:42 +0000 (06:04 +0000)
committerewt <devnull@localhost>
Wed, 7 Apr 1999 06:04:42 +0000 (06:04 +0000)
CVS patchset: 2962
CVS date: 1999/04/07 06:04:42

lib/install.c

index f579100..a77973d 100644 (file)
@@ -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,