Compute download size for sync packages only

Neither packages from files nor packages from the local database will ever
have a download size.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2010-10-27 01:25:45 -05:00
parent c4332c8091
commit 36ea02cc48
1 changed files with 1 additions and 1 deletions

View File

@ -385,7 +385,7 @@ static int compute_download_size(pmpkg_t *newpkg)
char *fpath;
off_t size = 0;
if(newpkg->origin == PKG_FROM_FILE) {
if(newpkg->origin != PKG_FROM_SYNCDB) {
newpkg->infolevel |= INFRQ_DSIZE;
newpkg->download_size = 0;
return(0);