[pacman-dev] [PATCH] Add events ALPM_EVENT_HOOK_{START,DONE}

Allan McRae allan at archlinux.org
Wed Dec 9 21:47:26 UTC 2015


On 09/12/15 23:00, Olivier Brunel wrote:
> On Sun,  6 Dec 2015 18:35:37 +0100
> Olivier Brunel <jjk at jjacky.com> wrote:
> 
>> Add events to let frontends know when hooks are being processed (and
>> when it's done), as that might be useful to update the UI.
>>
>> It can also be useful to know when ALPM_EVENT_SCRIPTLET_INFO might be
>> happening in that regard (There's no specific event for running
>> scriptlets, but they do happen at specific times after/before
>> ALPM_EVENT_PACKAGE_OPERATION_{START,DONE}).
>>
>> Signed-off-by: Olivier Brunel <jjk at jjacky.com>
>> ---
> 
> Forgot to say, I know there's a freeze for 5.0, but I figured you might
> wanna add this in, because if for pacman you're fine not having this
> information, for other frontends not knowing what's happening/that
> something is running, and out of nowhere getting some SCRIPTLET_INFO
> events, might be "odd"/problematic to provide good/consistent UI.
> 
> And since such changes involve API changes, I feel it might be good to
> have at least those events in the 5.0 release.
> 

I intend to include this - in fact, I want pacman to print a message
when it runs hooks because there could be quite a wait depending on the
hook.  I'll get around to look at it soon!

A


More information about the pacman-dev mailing list