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

expose XSolvable as ‘Solvable

Methods

==   []   __eq__   __str__   arch   attr   attr?   attr_values   conflicts   each_attr   enhances   epoch   equal   evr   id   identical?   location   name   name_id   new   obsoletes   pool   provides   provides?   recommends   repo   requires   revision   suggests   supplements   vendor   vendor=   version  

External Aliases

compare -> <=>

Public Class methods

Solvable.new(repo, "test", "1.42-0") → Solvable
Solvable.new(repo, "test", "1.42-0", "ppc") → Solvable

Create a Solvable in a Repo, give it name, edition-version-release and optionally an architecture.

Architecture defaults to noarch

See also: Repo.create_solvable

Public Instance methods

==(p1)

Alias for equal

[](p1)

Alias for attr

:nodoc:

String representation of Solvable

The architecture of the Solvable

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.

epoch()

Equality operator

The internal Id of this Solvable

Identity operator

identical represents satsolver semantics for equality

This might be different from your application needs, beware !

Get location of corresponding package

returns a 2-element tuple of [path (string), medianr (int)]

medianr is meaningful only for fixed-media repositories spread across multiple CDs or DVDs.

path is nil for non-package solvables.

The internal Id of the name of the Solvable

revision()
version()

[Validate]