[pacman-dev] [PATCH] sync_prepare: ignore explicitly removed conflicts
Allan McRae
allan at archlinux.org
Mon Mar 3 22:58:35 EST 2014
On 04/03/14 09:29, Andrew Gregory wrote:
> Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
> ---
> lib/libalpm/sync.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
> index 6ea78a0..31181e1 100644
> --- a/lib/libalpm/sync.c
> +++ b/lib/libalpm/sync.c
> @@ -566,6 +566,9 @@ int _alpm_sync_prepare(alpm_handle_t *handle, alpm_list_t **data)
>
> /* if conflict->package2 (the local package) is not elected for removal,
> we ask the user */
> + if(alpm_pkg_find(trans->remove, conflict->package2)) {
> + found = 1;
> + }
> for(j = trans->add; j && !found; j = j->next) {
> alpm_pkg_t *spkg = j->data;
> if(alpm_pkg_find(spkg->removes, conflict->package2)) {
>
Ack.
Are you looking at allowing pacman to do -S and -R in one transaction?
I suppose a libalpm GUI would probably like that feature (set packages
you want to have added/removed and then run it in one transaction).
Allan
More information about the pacman-dev
mailing list