Modulemd.ComponentRpm¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
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. |
||
r/w |
The lookaside cache URL. |
||
r/w |
The commit ID in the SCM repository. |
||
r/w |
The URI of the SCM repository. |
||
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:
Fields¶
- Inherited:
Class Details¶
- class Modulemd.ComponentRpm(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(key)¶
- Parameters:
key (
str
) – The key of this module component. Used when looking up components from aModulemd.ModuleStream
.- Returns:
A newly-allocated
Modulemd.ComponentRpm
object.- Return type:
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:
New in version 2.7.
- get_multilib_arches()¶
- Returns:
A #GStrv list of architectures on which multilib should be available.
- Return type:
[
str
]
New in version 2.0.
- get_srpm_buildroot()¶
- Returns:
The #ModulemdComponentRpm:srpm_buildroot flag.
- Return type:
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
) – TheModulemd.ComponentRpm
:buildroot
flag to set for self.
New in version 2.7.
- set_ref(ref)¶
-
New in version 2.0.
- set_repository(repository)¶
-
New in version 2.0.
Property Details¶
- Modulemd.ComponentRpm.props.buildroot¶
-
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¶
-
The lookaside cache URL.
- Modulemd.ComponentRpm.props.ref¶
-
The commit ID in the SCM repository.
- Modulemd.ComponentRpm.props.repository¶
-
The URI of the SCM repository.
- Modulemd.ComponentRpm.props.srpm_buildroot¶
-
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.