diff options
author | Ivy Foster <ivy.foster@gmail.com> | 2016-07-09 05:11:25 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-08-30 10:10:40 +0200 |
commit | 58140dba7440997e9d318fb56ed939a9c81fddf8 (patch) | |
tree | 5e2633a6c63cf56711e381602f6fae2dfdc775d9 /lib/libalpm/.gitignore | |
parent | 56de155296a57fb3fcd8ae64aed00fd18fe2f22e (diff) | |
download | pacman-58140dba7440997e9d318fb56ed939a9c81fddf8.tar.gz pacman-58140dba7440997e9d318fb56ed939a9c81fddf8.tar.xz |
Normalize alpm download callback's frontend cb arguments
When curl calls alpm's dlcb, alpm calls the frontend's cb with the
following (dlsize, totalsize) arguments:
0, -1: initialize
0, 0: no change since last call
x {x>0, x<y}, y {y>0}: data downloaded, total size known
x {x>0}, x: download finished
If total size is not known, do not call frontend cb (no change to
original behavior); alpm's callback shouldn't be called if there is a
download error.
See agregory's original spec here:
https://wiki.archlinux.org/index.php/User:Apg#download_callback
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/.gitignore')
0 files changed, 0 insertions, 0 deletions