summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Ischo <bji-keyword-pacman.3644cb@www.ischo.com>2009-03-09 10:05:10 +1300
committerDan McGee <dan@archlinux.org>2009-04-11 14:24:52 -0500
commitd70465decc617412db0670c8169ec22421c8e3d1 (patch)
tree9b301161f373d60c90aad3ab59e01f9827084446
parent4b78852f7e78ec605be0a382ddc78afe33251d78 (diff)
downloadpacman-d70465decc617412db0670c8169ec22421c8e3d1.tar.xz
Remove duplicates from the unresolvable list before prompting user
Signed-off-by: Bryan Ischo <bji-keyword-pacman.3644cb@www.ischo.com> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/sync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 85a07554..e6923abe 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -392,6 +392,7 @@ int _alpm_sync_prepare(pmtrans_t *trans, pmdb_t *db_local, alpm_list_t *dbs_sync
/* If there were unresolvable top-level packages, prompt the user to
see if they'd like to ignore them rather than failing the sync */
if(unresolvable != NULL) {
+ unresolvable = alpm_list_remove_dupes(unresolvable);
int remove_unresolvable = 0;
QUESTION(handle->trans, PM_TRANS_CONV_REMOVE_PKGS, unresolvable,
NULL, NULL, &remove_unresolvable);