From 36ea02cc482f14b787f1c7c4999fc347d77be7e5 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 27 Oct 2010 01:25:45 -0500 Subject: 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 --- lib/libalpm/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index dbd15065..a2dc4905 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -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); -- cgit v1.2.3-70-g09d2