index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Olivier Brunel <jjk@jjacky.com> | 2014-07-31 19:42:28 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2014-10-02 22:50:17 +1000 |
commit | 1e3c088c2e14c7211e77ad73201458418fd34091 (patch) | |
tree | d031263ac9ad10bb3bd74f9f9f01ea1540ea0437 /lib/libalpm | |
parent | ca8319aec904c1f59b51bf642d730d646e50b170 (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 4 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index c5a56b56..1f8070c2 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -131,7 +131,9 @@ static int dload_progress_cb(void *file, double dltotal, double dlnow, payload->handle->dlcb(payload->remote_name, 0, (off_t)dltotal); } - payload->handle->dlcb(payload->remote_name, current_size, total_size); + /* do NOT include initial_size since it wasn't part of the package's + * download_size (nor included in the total download size callback) */ + payload->handle->dlcb(payload->remote_name, (off_t)dlnow, (off_t)dltotal); payload->prevprogress = current_size; |