From 11477521f7d488de196df0fc0f855db9a906063f Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Mon, 29 Oct 2012 14:02:06 +0100 Subject: [PATCH] set SOLVER_SETREPO and SOLVER_SETVENDOR flags in repo limiter --- examples/pysolv | 2 +- examples/solv.c | 3 ++- src/solverdebug.c | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/pysolv b/examples/pysolv index 50c8cb1..486ed98 100755 --- a/examples/pysolv +++ b/examples/pysolv @@ -641,7 +641,7 @@ if options.repos: if hasattr(repo, 'handle'): if not repolimiter: repolimiter = pool.Selection() - repolimiter.addsimple(Job.SOLVER_SOLVABLE_REPO, repo.handle.id) + repolimiter.addsimple(Job.SOLVER_SOLVABLE_REPO|Job.SOLVER_SETREPO|Job.SOLVER_SETVENDOR, repo.handle.id) if cmd == 'search': matches = {} diff --git a/examples/solv.c b/examples/solv.c index a40e6d0..7389db1 100644 --- a/examples/solv.c +++ b/examples/solv.c @@ -2570,7 +2570,8 @@ main(int argc, char **argv) fprintf(stderr, "%s: no such repo\n", rname); exit(1); } - queue_push2(&repofilter, SOLVER_SOLVABLE_REPO, repoid); + /* SETVENDOR is actually wrong but useful */ + queue_push2(&repofilter, SOLVER_SOLVABLE_REPO | SOLVER_SETREPO | SOLVER_SETVENDOR, repoid); argc -= 2; argv += 2; } diff --git a/src/solverdebug.c b/src/solverdebug.c index f33f6d2..676c01d 100644 --- a/src/solverdebug.c +++ b/src/solverdebug.c @@ -947,6 +947,7 @@ pool_selection2str(Pool *pool, Queue *selection, Id flagmask) { int o = strlen(s); s = pool_tmpappend(pool, s, " ", 0); + if (how & SOLVER_SETEV) s = pool_tmpappend(pool, s, ",setev", 0); if (how & SOLVER_SETEVR) s = pool_tmpappend(pool, s, ",setevr", 0); -- 2.7.4