[pacman-dev] [PATCH] sync_prepare: exclude removals from resolvedeps
Allan McRae
allan at archlinux.org
Tue Mar 3 06:22:38 UTC 2015
On 24/03/14 23:59, Andrew Gregory wrote:
> Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
> ---
OK - I guess this is a patch towards allowing package additions and
removals in a single transaction.
> lib/libalpm/sync.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
> index 44a0ba8..cf7f0a8 100644
> --- a/lib/libalpm/sync.c
> +++ b/lib/libalpm/sync.c
> @@ -402,7 +402,7 @@ int _alpm_sync_prepare(alpm_handle_t *handle, alpm_list_t **data)
>
> if(!(trans->flags & ALPM_TRANS_FLAG_NODEPS)) {
> alpm_list_t *resolved = NULL;
> - alpm_list_t *remove = NULL;
> + alpm_list_t *remove = alpm_list_copy(trans->remove);
> alpm_list_t *localpkgs;
>
> /* Build up list by repeatedly resolving each transaction package */
>
More information about the pacman-dev
mailing list