mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
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:
parent
c4332c8091
commit
36ea02cc48
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user