From 9506409c3fa5e5df3a70ba9b814ce0032ed24196 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Mon, 24 Mar 2014 09:59:44 -0400 Subject: sync_prepare: remove useless check for replacers Since 017184fa, alpm_sync_sysupgrade will not add both a replacement and a literal upgrade to the transaction. Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- lib/libalpm/sync.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/libalpm/sync.c') diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index 38e8f9e8..4c74a3a0 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -424,8 +424,6 @@ int _alpm_sync_prepare(alpm_handle_t *handle, alpm_list_t **data) alpm_pkg_t *spkg = i->data; for(j = spkg->removes; j; j = j->next) { remove = alpm_list_add(remove, j->data); - /* do not re-install a (replaced) package even if an update is available */ - trans->add = alpm_list_remove(trans->add, j->data, _alpm_pkg_cmp, NULL); } } -- cgit v1.2.3-24-g4f1b