[pacman-dev] [PATCH] sync_prepare: remove useless check for replacers

Andrew Gregory andrew.gregory.8 at gmail.com
Mon Mar 24 09:59:44 EDT 2014


Since 017184fa, alpm_sync_sysupgrade will not add both a replacement and
a literal upgrade to the transaction.

Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
 lib/libalpm/sync.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index a025b68..44a0ba8 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -416,8 +416,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);
 			}
 		}
 
-- 
1.9.0



More information about the pacman-dev mailing list