summaryrefslogtreecommitdiff
path: root/lib/libalpm/backup.h
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2008-08-29 17:24:34 +0200
committerDan McGee <dan@archlinux.org>2008-09-02 09:38:01 -0500
commit242e9e90f4190b9f770a0230e99d302f7ec53e70 (patch)
tree0acd4b7fb2af863c48ee6d487e9a4bb3fda3ed9a /lib/libalpm/backup.h
parent95ea6fb3c19a8d72d5b2e71ab5e37f2da8c77d5d (diff)
downloadpacman-242e9e90f4190b9f770a0230e99d302f7ec53e70.tar.xz
Another attempt at fixing totaldownload.
This fixes FS#11339, which is a regression of commit 89c2c5196: When totaldownload is enabled, the database downloading percent (-Sy) is always at 0. That is because we have no guarantee that the totaldownload callback was called by libalpm. In particular, it is not called (and it would not make sense to) when a single file is downloaded, like it is the case with databases. So the correct way to detect if totaldownload should be used is checking both config->totaldownload and list_total, like it was already done in several places in the cb_dl_progress function. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/backup.h')
0 files changed, 0 insertions, 0 deletions