From bdb4bbc7aaa76f766c4b5ef028fb99baeb718638 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Fri, 22 Jun 2012 16:00:47 +0200 Subject: [PATCH] - also parse cudf provides ;) --- ext/repo_cudf.c | 5 +++++ tools/cudftest.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ext/repo_cudf.c b/ext/repo_cudf.c index be693ff..5a75990 100644 --- a/ext/repo_cudf.c +++ b/ext/repo_cudf.c @@ -348,6 +348,11 @@ repo_add_cudf(Repo *repo, Repo *installedrepo, FILE *fp, Queue *job, int flags) s->name = pool_str2id(pool, p, 1); continue; } + if (!strcmp(buf, "provides")) + { + s->provides = makedeps(s->repo, p, s->provides, 0); + continue; + } break; case 'r': if (!strcmp(buf, "depends")) diff --git a/tools/cudftest.c b/tools/cudftest.c index 05dea10..01ce117 100644 --- a/tools/cudftest.c +++ b/tools/cudftest.c @@ -98,6 +98,9 @@ main(int argc, char **argv) solv = solver_create(pool); solver_set_flag(solv, SOLVER_FLAG_ALLOW_UNINSTALL, 1); + /* solver_set_flag(solv, SOLVER_FLAG_IGNORE_RECOMMENDED, 1); */ + + queue_push2(&job, SOLVER_VERIFY, SOLVER_SOLVABLE_ALL); if (solver_solve(solv, &job) != 0) { int problem; -- 2.7.4