diff options
author | morganamilo <morganamilo@archlinux.org> | 2021-05-09 15:23:57 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2021-05-09 15:28:04 +0200 |
commit | 8bf17b29a24802c587afda0e96d93b22c5f5caeb (patch) | |
tree | de6ac814ba133f7d04036b8c7d22d3e776353d85 /test/scripts/makepkg-template_test.sh | |
parent | 4fead44e3ce97d3a83ca6bab393d480746ba9227 (diff) | |
download | pacman-8bf17b29a24802c587afda0e96d93b22c5f5caeb.tar.gz pacman-8bf17b29a24802c587afda0e96d93b22c5f5caeb.tar.xz |
libalpm: fix download rates becoming negative
When a download fails on one mirror a new download is started on the
next mirror. This causes the ammount downloaded to reset, confusing the
rate math and making it display a negative rate.
This is further complicated by the fact that a download may be resumed
from where it is or started over.
To account for this we alert the frontend that the download was
restarted. Pacman then starts the progress bar over.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test/scripts/makepkg-template_test.sh')
0 files changed, 0 insertions, 0 deletions