diff options
author | Michael Schroeder <mls@suse.de> | 2013-02-12 19:37:12 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-02-12 19:37:12 +0100 |
commit | 2e2cbbfecc239593f3b9c6734c4a1dd69bdb657f (patch) | |
tree | c0159e92a32ca3145845cf42b36272e16b1b42c4 /src/selection.c | |
parent | 5769c724a0102eeafbb2de636d1d8d4453462946 (diff) | |
download | libsolv-2e2cbbfecc239593f3b9c6734c4a1dd69bdb657f.tar.gz libsolv-2e2cbbfecc239593f3b9c6734c4a1dd69bdb657f.tar.bz2 libsolv-2e2cbbfecc239593f3b9c6734c4a1dd69bdb657f.zip |
fix stupid typo introduced when refactoring selection_filter_rel. Argh!
Diffstat (limited to 'src/selection.c')
-rw-r--r-- | src/selection.c | 3 |
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)) |