summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/selection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/selection.c b/src/selection.c
index 8d05448..426b731 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))