[pacman-dev] [PATCH] do not rely on localdb for hook matching

Allan McRae allan at archlinux.org
Tue Feb 23 02:17:02 UTC 2016


On 22/02/16 12:46, Andrew Gregory wrote:
> Relying on localdb to determine which trigger operations should match is
> completely broken for PostTransaction hooks because the localdb has
> already been updated.  Store a copy of the old version of any packages
> being updated to use instead.
> 
> Fixes FS#47996
> 
> Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>

OK.

<snip>

> +	_alpm_pkg_free(pkg->oldpkg);

I was very surprised that was not public!


More information about the pacman-dev mailing list