summaryrefslogtreecommitdiff
path: root/src/problems.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2009-06-24 16:16:29 +0200
committerMichael Schroeder <mls@suse.de>2009-06-24 16:16:29 +0200
commite10a98eb7ff8b877c291309b34db2d798105aec4 (patch)
treec4bf71398635f52ffac77545bdea5ad161d37054 /src/problems.c
parent3d2aeebae3926a84a1edb43fa55d1e3e4d8d8526 (diff)
downloadlibsolv-e10a98eb7ff8b877c291309b34db2d798105aec4.tar.gz
libsolv-e10a98eb7ff8b877c291309b34db2d798105aec4.tar.bz2
libsolv-e10a98eb7ff8b877c291309b34db2d798105aec4.zip
- fix bug in take_solution
- add buddy callback support
Diffstat (limited to 'src/problems.c')
-rw-r--r--src/problems.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/problems.c b/src/problems.c
index ccdb54c..d90dfb7 100644
--- a/src/problems.c
+++ b/src/problems.c
@@ -707,7 +707,7 @@ solver_take_solutionelement(Solver *solv, Id p, Id rp, Queue *job)
p = SOLVER_ERASE|SOLVER_SOLVABLE;
}
for (i = 0; i < job->count; i += 2)
- if (job->elements[i] == p && job->elements[i + 2] == rp)
+ if (job->elements[i] == p && job->elements[i + 1] == rp)
return;
queue_push2(job, p, rp);
}