Modulemd.Profile¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
The name of this profile. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Modulemd.Profile(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(name)¶
- Parameters:
name (
str) – The name of this profile.- Returns:
A newly-allocated
Modulemd.Profileobject. This object must be freed withGObject.Object.unref().- Return type:
New in version 2.0.
- add_rpm(rpm)¶
- Parameters:
rpm (
str) – The name of a binary RPM that should be installed when this profile is selected for installation.
New in version 2.0.
- clear_rpms()¶
Remove all RPMs from this profile.
New in version 2.5.
- copy()¶
- Returns:
The copied
Modulemd.Profileobject.- Return type:
Create a copy of this
Modulemd.Profileobject.New in version 2.0.
- equals(self_2)¶
- Parameters:
self_2 (
Modulemd.Profile) – AModulemd.Profileobject.- Returns:
True, if all elements of self and self_2 are equal.False, otherwise.- Return type:
New in version 2.2.
- get_description(locale)¶
- Parameters:
locale (
strorNone) – The name of the locale to use when translating the string. IfNone, it will determine the locale with a system call tosetlocale(LC_MESSAGES, NULL)and return that. If the caller wants the untranslated string, they should pass"C"for the locale.- Returns:
The description of this profile translated into the language specified by the locale if it is available, otherwise it returns the C.UTF-8 original. Translation information is managed by the
Modulemd.TranslationandModulemd.TranslationEntryobjects.- Return type:
New in version 2.0.
- get_rpms()¶
- Returns:
An ordered #GStrv list of binary RPMS that would be installed when this profile is selected for installation.
- Return type:
[
str]
New in version 2.0.
- is_default()¶
-
New in version 2.10.
- remove_rpm(rpm)¶
- Parameters:
rpm (
str) – The name of a binary RPM to remove from this profile.
New in version 2.0.
- set_default()¶
Calling this function indicates that this profile should be considered one of the default profiles for the associated stream.
New in version 2.10.
- set_description(description)¶
-
New in version 2.0.
- unset_default()¶
Calling this function indicates that this profile should not be considered one of the default profiles for this stream. This is the normal state of a
Modulemd.Profileand thus this function is usually unnecessary. It has no effect if self is already non-default.New in version 2.10.
Property Details¶
- Modulemd.Profile.props.name¶
- Name:
name- Type:
- Default Value:
'__PROFILE_NAME_UNSET__'- Flags:
The name of this profile.