summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-27 08:25:45 +0200
committerDan McGee <dan@archlinux.org>2011-01-22 18:11:29 +0100
commit36ea02cc482f14b787f1c7c4999fc347d77be7e5 (patch)
treebfd9794fb546c3969a9b85c8ab7a92cbdf89e733 /lib/libalpm/sync.c
parentc4332c8091dbba8bb9d9c56a3229843497b58670 (diff)
downloadpacman-36ea02cc482f14b787f1c7c4999fc347d77be7e5.tar.gz
pacman-36ea02cc482f14b787f1c7c4999fc347d77be7e5.tar.xz
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>
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r--lib/libalpm/sync.c2
1 files changed, 1 insertions, 1 deletions
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);