mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-10 11:35:00 -05:00
1e3c088c2e
When a package is already partially downloaded in the cache, its download
size will only be of what's left to be downloaded. Since pkg->download_size
is what's used when calculating the total download size for the totaldl
callback, same thing apply.
However, the download progress callback was including this initial size,
which would thus lead to invalid values (and percentage) used in frontends.
That is, the progress bar could e.g. go further than 100%
In the case of pacman, there is a sanity check for different historical
reason (
|
||
---|---|---|
.. | ||
libalpm |