[pacman-dev] [PATCH] Reimplement TotalDownload functionality
shiningxc at gmail.com
Thu Jun 5 04:42:42 EDT 2008
On Mon, Jun 2, 2008 at 6:14 AM, Dan McGee <dan at archlinux.org> wrote:
> Add a new totaldlcb callback function to libalpm and make pacman utilize it
> when the TotalDownload option is enabled. This callback function is pretty
> simple- it is meant to be called once at the beginning of a "list download"
> action, and once at the end (with value 0 to indicate the list has been
> finished). The frontend is responsible for keeping track of adding
> individual file download amounts to the total xfered amount in order to
> display some sort of overall progress.
I am sorry I was not able to give serious thinking about this, but now
I am wondering why we need a callback at all for this, instead of a
simple accessor for the total download size. Would it even be
More information about the pacman-dev