diff options
author | Dan McGee <dan@archlinux.org> | 2010-10-27 01:25:45 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-22 11:11:29 -0600 |
commit | 36ea02cc482f14b787f1c7c4999fc347d77be7e5 (patch) | |
tree | bfd9794fb546c3969a9b85c8ab7a92cbdf89e733 | |
parent | c4332c8091dbba8bb9d9c56a3229843497b58670 (diff) | |
download | 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>
-rw-r--r-- | lib/libalpm/sync.c | 2 |
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); |