constant. Also do not forget to prepend the namespace of the constant:
$pool->set_flag($solv::Pool::POOL_FLAG_OBSOLETEUSESCOLORS, 1);
-
+
Python Specifics
----------------
TCL $pool set_flag $solv::Pool_POOL_FLAG_OBSOLETEUSESCOLORS 1
TCL puts [$solvable lookup_str $solv::SOLVABLE_SUMMARY]
-
+
The Solv Class
--------------
pool = Solv::Pool.new()
Create a new pool instance. In most cases you just need one pool.
-Note that the returned object "owns" the pool, i.e. if the object is
+Note that the returned object "owns" the pool, i.e. if the object is
freed, the pool is also freed. You can use the disown method to
break this ownership relation.
Return all solvables that provide the specified dependency. You can use either
a Dep object or a simple Id as argument.
+ Solvable *best_solvables(Solvable *solvables, int flags = 0)
+ my @solvables = $pool->best_solvables($solvables);
+ solvables = pool.best_solvables(solvables)
+ solvables = pool.best_solvables(solvables)
+
+Filter list of solvables by repo priority, architecture and version.
+
+ Solvable *whatmatchessolvable(Id keyname, Solvable solvable, Id marker = -1)
+ my @solvables = $pool->whatmatchessolvable($keyname, $solvable)
+ solvables = pool.whatmatchessolvable(keyname, solvable)
+ solvables = pool.whatmatchessolvable(keyname, solvable)
+
+Return all solvables that match package dependencies against solvable's
+provides.
+
Id *matchprovidingids(const char *match, int flags)
my @ids = $pool->matchprovidingids($match, $flags);
ids = pool.matchprovidingids(match, flags)
my $sel = $pool->Selection_all();
sel = pool.Selection_all()
sel = pool.Selection_all()
-
+
Create a selection containing all packages. Useful as starting point for
intersecting other selections or for update/distupgrade jobs.
This can be used if you want to match other dependency types than ``provides''.
Selection matchdepid(DepId dep, int flags, Id keyname, Id marker = -1)
- my $sel = $pool->matchdepid(dep, $flags, $keyname);
+ my $sel = $pool->matchdepid($dep, $flags, $keyname);
sel = pool.matchdepid(dep, flags, keyname)
sel = pool.matchdepid(dep, flags, keyname)
dependencies. The downside is that you cannot use globs or case insensitive
matching.
+ Selection matchsolvable(Solvable solvable, int flags, Id keyname, Id marker = -1)
+ my $sel = $pool->matchsolvable($solvable, $flags, $keyname);
+ sel = pool.matchsolvable(solvable, flags, keyname)
+ sel = pool.matchsolvable(solvable, flags, keyname)
+
+Create a selection by matching package dependencies against the specified
+solvable's provides.
+
void setpooljobs(Jobs *jobs)
$pool->setpooljobs(\@jobs);
pool.setpooljobs(jobs)
$repo->{name}
repo.name
repo.name
-
+
The repositories name. To libsolv, the name is just a string with no specific
meaning.
my @deps = $solvable->lookup_deparray($keyname);
deps = solvable.lookup_deparray(keyname)
deps = solvable.lookup_deparray(keyname)
-
+
Generic lookup methods. Retrieve data stored for the specific keyname.
The lookup_idarray() method will return an array of Ids, use
lookup_deparray if you want an array of Dependency objects instead.
*SELECTION_DOTARCH*::
Allow an ".<architecture>" suffix when matching names or
provides.
-
+
*SELECTION_REL*::
Allow the specification of a relation when matching names
or dependencies, e.g. "name >= 1.2".
Do a matchdepid operation and combine the result with the current selection.
+ void matchsolvable(Solvable solvable, int flags, Id keyname, Id marker = -1)
+ $sel->matchsolvable($solvable, $flags, $keyname);
+ sel.matchsolvable(solvable, flags, keyname)
+ sel.matchsolvable(solvable, flags, keyname)
+
+Do a matchsolvable operation and combine the result with the current selection.
+
<stringification>
my $str = $sel->str;
str = str(sel)
of the specified packages are installed, try to update the installed
packages to the specified versions. See the section about targeted
updates about more information.
-
+
*SOLVER_WEAKENDEPS*::
Allow to break the dependencies of the matching packages. Handle with care.
update A-2-1 (other: A-1-1)
erase B
-in active mode. If the mode contains SOLVER_TRANSACTION_SHOW_ALL, the
+in active mode. If the mode contains SOLVER_TRANSACTION_SHOW_ALL, the
passive mode list will be unchanged but the active mode list will just
contain A-2-1.
chksum.add_fp(file)
Add the contents of a file to the checksum.
-
+
void add_stat(const char *filename)
$chksum->add_stat($filename);
chksum.add_stat(filename)
The Repodata stores attributes for packages and the repository itself, each
repository can have multiple repodata areas. You normally only need to
directly access them if you implement lazy downloading of repository data.
-Repodata areas are created by calling the repository's add_repodata() method
+Repodata areas are created by calling the repository's add_repodata() method
or by using repo_add methods without the REPO_REUSE_REPODATA or REPO_USE_LOADING
flag.