Modulemd.ComponentRpm

g GObject.Object GObject.Object Modulemd.Component Modulemd.Component GObject.Object->Modulemd.Component Modulemd.ComponentRpm Modulemd.ComponentRpm Modulemd.Component->Modulemd.ComponentRpm

Subclasses:

None

Methods

Inherited:

Modulemd.Component (15), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (key)

add_multilib_arch (arch)

add_restricted_arch (arch)

clear_arches ()

clear_multilib_arches ()

get_arches ()

get_buildroot ()

get_cache ()

get_multilib_arches ()

get_ref ()

get_repository ()

get_srpm_buildroot ()

reset_arches ()

reset_multilib_arches ()

set_buildroot (buildroot)

set_cache (cache)

set_ref (ref)

set_repository (repository)

set_srpm_buildroot (srpm_buildroot)

Virtual Methods

Inherited:

Modulemd.Component (5), GObject.Object (7)

Properties

Inherited:

Modulemd.Component (4)

Name

Type

Flags

Short Description

buildroot

bool

r/w

Whether the packages listed in this module’s buildroot profile will be installed into the buildroot of any component built in subsequent buildorder/buildafter batches.

cache

str

r/w

The lookaside cache URL.

ref

str

r/w

The commit ID in the SCM repository.

repository

str

r/w

The URI of the SCM repository.

srpm-buildroot

bool

r/w

Whether the packages listed in this module’s srpm-buildroot profile will be installed into the buildroot when performing the buildSRPMfromSCM step in subsequent buildorder/buildafter batches.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Modulemd.ComponentRpm(**kwargs)
Bases:

Modulemd.Component

Abstract:

No

Structure:

Modulemd.ComponentRpmClass

classmethod new(key)
Parameters:

key (str) – The key of this module component. Used when looking up components from a Modulemd.ModuleStream.

Returns:

A newly-allocated Modulemd.ComponentRpm object.

Return type:

Modulemd.ComponentRpm

New in version 2.0.

add_multilib_arch(arch)
Parameters:

arch (str) – An architecture on which this package should be multilib.

Add an architecture on which this RPM will be multilib. It may be called any number of times. Use Modulemd.ComponentRpm.clear_multilib_arches() to return to “no architectures”.

New in version 2.0.

add_restricted_arch(arch)
Parameters:

arch (str) – An architecture on which this package should be available.

Restrict the list of architectures on which this RPM will be available. It may be called any number of times to indicate support on additional architectures. Use Modulemd.ComponentRpm.clear_arches() to return to “all architectures”.

New in version 2.0.

clear_arches()

Indicate that this RPM component is available on all arches.

New in version 2.9.

clear_multilib_arches()

Indicate that this RPM component is multilib on no architectures.

New in version 2.9.

get_arches()
Returns:

A #GStrv list of architectures on which this RPM should be available.

Return type:

[str]

New in version 2.0.

get_buildroot()
Returns:

The Modulemd.ComponentRpm :buildroot flag.

Return type:

bool

New in version 2.7.

get_cache()
Returns:

The lookaside cache URL.

Return type:

str

New in version 2.0.

get_multilib_arches()
Returns:

A #GStrv list of architectures on which multilib should be available.

Return type:

[str]

New in version 2.0.

get_ref()
Returns:

The commit ID in the SCM repository.

Return type:

str

New in version 2.0.

get_repository()
Returns:

The URI of the SCM repository.

Return type:

str

New in version 2.0.

get_srpm_buildroot()
Returns:

The #ModulemdComponentRpm:srpm_buildroot flag.

Return type:

bool

New in version 2.7.

reset_arches()

Indicate that this RPM component is available on all arches.

New in version 2.0.

Deprecated since version 2.9: Use Modulemd.ComponentRpm.clear_arches() instead.

reset_multilib_arches()

Indicate that this RPM component is multilib on no architectures.

New in version 2.0.

Deprecated since version 2.9: Use Modulemd.ComponentRpm.clear_multilib_arches() instead.

set_buildroot(buildroot)
Parameters:

buildroot (bool) – The Modulemd.ComponentRpm :buildroot flag to set for self.

New in version 2.7.

set_cache(cache)
Parameters:

cache (str or None) – The lookaside cache URL.

New in version 2.0.

set_ref(ref)
Parameters:

ref (str or None) – The commit ID in the SCM repository.

New in version 2.0.

set_repository(repository)
Parameters:

repository (str or None) – The URI of the SCM repository.

New in version 2.0.

set_srpm_buildroot(srpm_buildroot)
Parameters:

srpm_buildroot (bool) – The #ModulemdComponentRpm:srpm_buildroot flag to set for self.

New in version 2.7.

Property Details

Modulemd.ComponentRpm.props.buildroot
Name:

buildroot

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether the packages listed in this module’s buildroot profile will be installed into the buildroot of any component built in subsequent buildorder/buildafter batches.

Modulemd.ComponentRpm.props.cache
Name:

cache

Type:

str

Default Value:

'__UNSET_COMPONENT_RPM__'

Flags:

READABLE, WRITABLE

The lookaside cache URL.

Modulemd.ComponentRpm.props.ref
Name:

ref

Type:

str

Default Value:

'__UNSET_COMPONENT_RPM__'

Flags:

READABLE, WRITABLE

The commit ID in the SCM repository.

Modulemd.ComponentRpm.props.repository
Name:

repository

Type:

str

Default Value:

'__UNSET_COMPONENT_RPM__'

Flags:

READABLE, WRITABLE

The URI of the SCM repository.

Modulemd.ComponentRpm.props.srpm_buildroot
Name:

srpm-buildroot

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether the packages listed in this module’s srpm-buildroot profile will be installed into the buildroot when performing the buildSRPMfromSCM step in subsequent buildorder/buildafter batches.