From 2e2cbbfecc239593f3b9c6734c4a1dd69bdb657f Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Tue, 12 Feb 2013 19:37:12 +0100 Subject: [PATCH] fix stupid typo introduced when refactoring selection_filter_rel. Argh! --- src/selection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/selection.c b/src/selection.c index 8d054483..426b7316 100644 --- a/src/selection.c +++ b/src/selection.c @@ -155,6 +155,7 @@ static void selection_filter_rel(Pool *pool, Queue *selection, Id relflags, Id relevr) { int i; + for (i = 0; i < selection->count; i += 2) { Id select = selection->elements[i] & SOLVER_SELECTMASK; @@ -196,7 +197,7 @@ selection_filter_rel(Pool *pool, Queue *selection, Id relflags, Id relevr) } queue_free(&q); } - else if (select == SOLVER_SOLVABLE_NAME && select == SOLVER_SOLVABLE_PROVIDES) + else if (select == SOLVER_SOLVABLE_NAME || select == SOLVER_SOLVABLE_PROVIDES) { /* don't stack src reldeps */ if (relflags == REL_ARCH && (relevr == ARCH_SRC || relevr == ARCH_NOSRC) && ISRELDEP(id)) -- 2.47.2