Class Satsolver::Repo
In: satsolver.i
Parent: Object

The Repo represents a Set of Solvables from the same origin. This is usually a .solv file (e.g. create from a package Repository) or the RPM database.

Repositories can be given a name, making it easier to identify and reference them.

About memory management

Since Solvables back reference the Repo they belong to, the Repo desctructor is left as a no-op. In the rare case that one has to free memory allocated to a Repo, call discard and do not reference any Solvables originating from this Repo.

Methods

<<   []   __str__   add   add_file   add_rpmdb   add_solv   attr   count   create_solvable   data   datasize   discard   each   each_data   empty?   find   name   name=   new   pool   priority   priority=   search   size   solvables  

Included Modules

Enumerable

Public Class methods

Repo.new(pool, "test")

Create a new Repository in Pool with a given name

See also: Pool.create_repo()

Public Instance methods

<<(p1)

Alias for add

[](p1)

Alias for attr

A string representation

Add opened .solv file to Repo

Add RPM database, optionally passing a root directory

Attribute accessor.

It takes either a string or a symbol and returns the value of the attribute.

If its a symbol, all underline characters are converted to colons. E.g. +:solvable_installsize+ -> +"solvable:installsize"+

A ValueError exception is raised if the attribute name does not exist.

nil is returned if the attribute name exists but is not set for the solvable.

Number of Solvables in Repo

Create solvable with name and evr in the Repo Can optionally be passed an architecture, defaulting to noarch

get Repodata by index

return number of attached Repodata(s)

Iterator for all Solvables

Returns true if there are no Solvables in this Repo

find (best) solvable by name

The name of the Repo

Assign a name to the Repo

The Pool this Repo belongs to

priority=(p1)

see also count() below !

[Validate]