Selection: rename addsimple method to add_raw in the bindings
authorMichael Schroeder <mls@suse.de>
Tue, 27 Nov 2012 10:33:11 +0000 (11:33 +0100)
committerMichael Schroeder <mls@suse.de>
Tue, 27 Nov 2012 10:33:11 +0000 (11:33 +0100)
bindings/solv.i
examples/p5solv
examples/pysolv
examples/rbsolv

index 4d7624e..a6171bc 100644 (file)
@@ -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]));
index ce32f1c..2a7648f 100755 (executable)
@@ -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);
 }
 
index bfb020e..0bdf8e0 100755 (executable)
@@ -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)
index 8470a8c..61b35af 100755 (executable)
@@ -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