Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/config.sub
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 /config.sub
parent95ea6fb3c19a8d72d5b2e71ab5e37f2da8c77d5d (diff)
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 'config.sub')
0 files changed, 0 insertions, 0 deletions