From 683e50ed13321d5265ce80e1817b354a5af9d1ed Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Tue, 27 Nov 2012 11:33:11 +0100 Subject: [PATCH] Selection: rename addsimple method to add_raw in the bindings --- bindings/solv.i | 2 +- examples/p5solv | 2 +- examples/pysolv | 4 ++-- examples/rbsolv | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bindings/solv.i b/bindings/solv.i index 4d7624e..a6171bc 100644 --- a/bindings/solv.i +++ b/bindings/solv.i @@ -873,7 +873,7 @@ typedef struct { $self->flags |= lsel->flags; } } - void addsimple(Id how, Id what) { + void add_raw(Id how, Id what) { queue_push2(&$self->q, how, what); } %typemap(out) Queue jobs Queue2Array(Job *, 2, new_Job(arg1->pool, id, idp[1])); diff --git a/examples/p5solv b/examples/p5solv index ce32f1c..2a7648f 100755 --- a/examples/p5solv +++ b/examples/p5solv @@ -574,7 +574,7 @@ for my $arg (@ARGV) { } if (!@jobs && ($cmd eq 'up' || $cmd eq 'dup' || $cmd eq 'verify')) { my $sel = $pool->Selection(); - $sel->addsimple($solv::Job::SOLVER_SOLVABLE_ALL, 0); + $sel->add_raw($solv::Job::SOLVER_SOLVABLE_ALL, 0); push @jobs, $sel->jobs(0); } diff --git a/examples/pysolv b/examples/pysolv index bfb020e..0bdf8e0 100755 --- a/examples/pysolv +++ b/examples/pysolv @@ -639,7 +639,7 @@ if options.repos: if hasattr(repo, 'handle'): if not repolimiter: repolimiter = pool.Selection() - repolimiter.addsimple(Job.SOLVER_SOLVABLE_REPO|Job.SOLVER_SETREPO|Job.SOLVER_SETVENDOR, repo.handle.id) + repolimiter.add_raw(Job.SOLVER_SOLVABLE_REPO|Job.SOLVER_SETREPO|Job.SOLVER_SETVENDOR, repo.handle.id) if cmd == 'search': matches = {} @@ -701,7 +701,7 @@ for arg in args: if not jobs and (cmd == 'up' or cmd == 'dup' or cmd == 'verify' or repolimiter): sel = pool.Selection() - sel.addsimple(Job.SOLVER_SOLVABLE_ALL, 0) + sel.add_raw(Job.SOLVER_SOLVABLE_ALL, 0) if repolimiter: sel.limit(repolimiter) jobs += sel.jobs(0) diff --git a/examples/rbsolv b/examples/rbsolv index 8470a8c..61b35af 100755 --- a/examples/rbsolv +++ b/examples/rbsolv @@ -586,7 +586,7 @@ end if jobs.empty? && (cmd == 'up' || cmd == 'dup' || cmd == 'verify') sel = pool.Selection() - sel.addsimple(Solv::Job::SOLVER_SOLVABLE_ALL, 0) + sel.add_raw(Solv::Job::SOLVER_SOLVABLE_ALL, 0) jobs += sel.jobs(0) end -- 2.7.4