summaryrefslogtreecommitdiff
path: root/doc/libsolv-bindings.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/libsolv-bindings.txt')
-rw-r--r--doc/libsolv-bindings.txt45
1 files changed, 44 insertions, 1 deletions
diff --git a/doc/libsolv-bindings.txt b/doc/libsolv-bindings.txt
index 7b4f505..ac112cf 100644
--- a/doc/libsolv-bindings.txt
+++ b/doc/libsolv-bindings.txt
@@ -495,6 +495,20 @@ a Dep object or a simple Id as argument.
Filter list of solvables by repo priority, architecture and version.
+ Solvable *whatcontainsdep(Id keyname, DepId dep, Id marker = -1)
+ my @solvables = $pool->whatcontainsdep($keyname, $dep)
+ solvables = pool.whatcontainsdep(keyname, dep)
+ solvables = pool.whatcontainsdep(keyname, dep)
+
+Return all solvables for which keyname contains the dependency.
+
+ Solvable *whatmatchesdep(Id keyname, DepId dep, Id marker = -1)
+ my @solvables = $pool->whatmatchesdep($keyname, $sdep)
+ solvables = pool.whatmatchesdep(keyname, dep)
+ solvables = pool.whatmatchesdep(keyname, dep)
+
+Return all solvables that have dependencies in keyname that match the dependency.
+
Solvable *whatmatchessolvable(Id keyname, Solvable solvable, Id marker = -1)
my @solvables = $pool->whatmatchessolvable($keyname, $solvable)
solvables = pool.whatmatchessolvable(keyname, solvable)
@@ -645,6 +659,35 @@ circular references (e.g. if the pool's appdata value points to some meta data
structure that contains a pool handle). If used incorrectly, this method can
lead to application crashes, so beware. (This method is a no-op for ruby and tcl.)
+ Id *get_considered_list()
+ my @ids = $pool->get_considered_list();
+ ids = pool.get_considered_list()
+ ids = pool.get_considered_list()
+
+ void set_considered_list(Id *ids)
+ $pool->set_considered_list(\@ids);
+ pool.set_considered_list(ids)
+ pool.set_considered_list(ids)
+
+Get/set the list of solvables that are eligible for installation. Note that
+you need to recreate the whatprovides hash after changing the list.
+
+ Id *get_disabled_list()
+ my @ids = $pool->get_disabled_list();
+ ids = pool.get_disabled_list()
+ ids = pool.get_disabled_list()
+
+ void set_disabled_list(Id *ids)
+ $pool->set_disabled_list(\@ids);
+ pool.set_disabled_list(ids)
+ pool.set_disabled_list(ids)
+
+Get/set the list of solvables that are not eligible for installation. This is
+basically the inverse of the ``considered'' methods above, i.e. calling
+``set_disabled_list()'' with an empty list will make all solvables eligible for
+installation. Note you need to recreate the whatprovides hash after changing the
+list.
+
=== DATA RETRIEVAL METHODS ===
In the following functions, the _keyname_ argument describes what to retrieve.
@@ -807,7 +850,7 @@ Back reference to the pool this dependency belongs to.
The id of this dependency.
-== Methods ==
+=== METHODS ===
Dep Rel(int flags, DepId evrid, bool create = 1)
my $reldep = $dep->Rel($flags, $evrdep);