summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-03-24 14:59:45 +0100
committerAllan McRae <allan@archlinux.org>2015-03-03 07:54:17 +0100
commitba532bda6b558e5bbf429bfa8f806ac8122c8d56 (patch)
tree8abbe0ad709a0ea12797115a8dec0aa807920a3c /lib/libalpm
parentff8de12151047ccf9b0640480bfc624892a5ab7a (diff)
downloadpacman-ba532bda6b558e5bbf429bfa8f806ac8122c8d56.tar.gz
pacman-ba532bda6b558e5bbf429bfa8f806ac8122c8d56.tar.xz
sync_prepare: exclude removals from resolvedeps
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 79192cff..888ae15e 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -410,7 +410,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 */