diff options
author | Michael Schroeder <mls@suse.de> | 2012-11-27 11:33:11 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-11-27 11:33:11 +0100 |
commit | 683e50ed13321d5265ce80e1817b354a5af9d1ed (patch) | |
tree | 5612942da9f760152c6880e60093a7be096ff80d | |
parent | 9eaaeb1ef79617559a51b23acf58f9563478207a (diff) | |
download | libsolv-683e50ed13321d5265ce80e1817b354a5af9d1ed.tar.gz libsolv-683e50ed13321d5265ce80e1817b354a5af9d1ed.tar.bz2 libsolv-683e50ed13321d5265ce80e1817b354a5af9d1ed.zip |
Selection: rename addsimple method to add_raw in the bindings
-rw-r--r-- | bindings/solv.i | 2 | ||||
-rwxr-xr-x | examples/p5solv | 2 | ||||
-rwxr-xr-x | examples/pysolv | 4 | ||||
-rwxr-xr-x | 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 |