summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-02-12 19:37:12 +0100
committerMichael Schroeder <mls@suse.de>2013-02-12 19:37:12 +0100
commit2e2cbbfecc239593f3b9c6734c4a1dd69bdb657f (patch)
treec0159e92a32ca3145845cf42b36272e16b1b42c4 /src
parent5769c724a0102eeafbb2de636d1d8d4453462946 (diff)
downloadlibsolv-2e2cbbfecc239593f3b9c6734c4a1dd69bdb657f.tar.gz
libsolv-2e2cbbfecc239593f3b9c6734c4a1dd69bdb657f.tar.bz2
libsolv-2e2cbbfecc239593f3b9c6734c4a1dd69bdb657f.zip
fix stupid typo introduced when refactoring selection_filter_rel. Argh!
Diffstat (limited to 'src')
-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))