[pacman-dev] [PATCH] add front-end provided context to callbacks

Allan McRae allan at archlinux.org
Mon Apr 26 07:47:02 UTC 2021


On 26/4/21 7:32 am, Andrew Gregory wrote:
> Our callbacks require front-ends to maintain state in order to provide
> reasonable output.  The new download callback in particular requires
> much more complex state information to be saved.  Without the ability to
> provide context, state must be saved globally, which may not be possible
> for all front-ends.  Scripting language bindings in particular have no
> way to register per-handle callbacks without some form of context.
> 
> Implements: FS#12721
> 
> Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>

I'm adding this despite the slushy freeze.  Near zero risk for
alpm/pacman given the nature of the patch and Andrew asked nicely!

A


More information about the pacman-dev mailing list