Modulemd.RpmMapEntry

g GObject.Object GObject.Object Modulemd.RpmMapEntry Modulemd.RpmMapEntry GObject.Object->Modulemd.RpmMapEntry

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (name, epoch, version, release, arch)

copy ()

equals (other)

get_arch ()

get_epoch ()

get_name ()

get_nevra ()

get_release ()

get_version ()

set_arch (arch)

set_epoch (epoch)

set_name (name)

set_release (release)

set_version (version)

validate ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

arch

str

r/w/c

The artifact package architecture

epoch

int

r/w/c

The artifact package epoch

name

str

r/w/c

The artifact package name

nevra

str

r

The artifact package N-E:V-R.A

release

str

r/w/c

The artifact package release string

version

str

r/w/c

The artifact package version

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Modulemd.RpmMapEntry(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Modulemd.RpmMapEntryClass

classmethod new(name, epoch, version, release, arch)
Parameters:
  • name (str) – The name of the package.

  • epoch (int) – The epoch of the package.

  • version (str) – The version of the package.

  • release (str) – The release string of the package.

  • arch (str) – The processor architecture of the package.

Returns:

A newly-allocated Modulemd.RpmMapEntry object with the provided values.

Return type:

Modulemd.RpmMapEntry

Create a new rpm-map entry. This will contain the decomposed NEVRA of an RPM artifact.

copy()
Returns:

A deep copy of this Modulemd.RpmMapEntry object.

Return type:

Modulemd.RpmMapEntry

New in version 2.2.

equals(other)
Parameters:

other (Modulemd.RpmMapEntry) – Another Modulemd.RpmMapEntry object.

Returns:

True if the two entries contain equivalent data. False if they differ.

Return type:

bool

New in version 2.2.

get_arch()
Returns:

The package architecture of this RPM.

Return type:

str

New in version 2.2.

get_epoch()
Returns:

The package epoch of this RPM.

Return type:

int

New in version 2.2.

get_name()
Returns:

The package name of this RPM.

Return type:

str

New in version 2.2.

get_nevra()
Returns:

A newly-allocated string containing the complete N-E:V-R.A constructed from the component parts. None if any field is missing.

Return type:

str

New in version 2.2.

get_release()
Returns:

The package release of this RPM.

Return type:

str

New in version 2.2.

get_version()
Returns:

The package version of this RPM.

Return type:

str

New in version 2.2.

set_arch(arch)
Parameters:

arch (str) – The package architecture of this RPM.

New in version 2.2.

set_epoch(epoch)
Parameters:

epoch (int) – The package epoch of this RPM.

New in version 2.2.

set_name(name)
Parameters:

name (str) – The package name of this RPM.

New in version 2.2.

set_release(release)
Parameters:

release (str) – The package release string of this RPM.

New in version 2.2.

set_version(version)
Parameters:

version (str) – The package version of this RPM.

New in version 2.2.

validate()
Raises:

GLib.Error

Return type:

bool

New in version 2.2.

Property Details

Modulemd.RpmMapEntry.props.arch
Name:

arch

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The artifact package architecture

Modulemd.RpmMapEntry.props.epoch
Name:

epoch

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT

The artifact package epoch

Modulemd.RpmMapEntry.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The artifact package name

Modulemd.RpmMapEntry.props.nevra
Name:

nevra

Type:

str

Default Value:

None

Flags:

READABLE

The artifact package N-E:V-R.A

Modulemd.RpmMapEntry.props.release
Name:

release

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The artifact package release string

Modulemd.RpmMapEntry.props.version
Name:

version

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The artifact package version