From: Michael Schroeder Date: Mon, 29 Oct 2012 13:02:06 +0000 (+0100) Subject: set SOLVER_SETREPO and SOLVER_SETVENDOR flags in repo limiter X-Git-Tag: upstream/0.2.3~98 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=11477521f7d488de196df0fc0f855db9a906063f;p=platform%2Fupstream%2Flibsolv.git set SOLVER_SETREPO and SOLVER_SETVENDOR flags in repo limiter --- 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);