Modulemd.ModuleIndexMerger

g GObject.Object GObject.Object Modulemd.ModuleIndexMerger Modulemd.ModuleIndexMerger GObject.Object->Modulemd.ModuleIndexMerger

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

associate_index (index, priority)

resolve ()

resolve_ext (strict_default_streams)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Modulemd.ModuleIndexMerger(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Modulemd.ModuleIndexMergerClass

classmethod new()
Returns:

A newly-allocated Modulemd.ModuleIndexMerger object.

Return type:

Modulemd.ModuleIndexMerger

New in version 2.0.

associate_index(index, priority)
Parameters:

Enqueues a Modulemd.ModuleIndex representing the parsed metadata from a repository into this Modulemd.ModuleIndexMerger for merging and deduplication of other repositories.

Once all repositories have been added, call Modulemd.ModuleIndexMerger.resolve() to perform the merge.

New in version 2.0.

resolve()
Raises:

GLib.Error

Returns:

A newly-allocated Modulemd.ModuleIndex object containing the merged results. If this function encounters an unresolvable merge conflict, it will return None and set error appropriately.

Return type:

Modulemd.ModuleIndex

Merges all added Modulemd.ModuleIndex objects according to their priority. The logic of this merge is described in the Description of Modulemd.ModuleIndexMerger.

Once this function has been called, the internal state of the Modulemd.ModuleIndexMerger is undefined. The only valid action on it after that point is GObject.Object.unref().

This function is equivalent to calling Modulemd.ModuleIndexMerger.resolve_ext() with strict_default_streams=FALSE.

New in version 2.0.

resolve_ext(strict_default_streams)
Parameters:

strict_default_streams (bool) – If True, merging two Modulemd.Defaults with conflicting default streams will raise an error. If False, the module will have its default stream blocked.

Raises:

GLib.Error

Returns:

A newly-allocated Modulemd.ModuleIndex object containing the merged results. If this function encounters an unresolvable merge conflict, it will return None and set error appropriately.

Return type:

Modulemd.ModuleIndex

Merges all added Modulemd.ModuleIndex objects according to their priority. The logic of this merge is described in the Description of Modulemd.ModuleIndexMerger.

Once this function has been called, the internal state of the Modulemd.ModuleIndexMerger is undefined. The only valid action on it after that point is GObject.Object.unref().

New in version 2.6.