struct RPM::Transaction::Element

Overview

Element in transaction (install/remove/update)

Transaction Element is valid only while the transaction which this element belongs to is allocated.

Defined in:

rpm/transaction.cr
rpm/transaction_element.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ptr) #

[View source]

Instance Method Detail

def arch : String #

Returns package architecture to install, update or remove


[View source]
def clean_dependency_set #

Clear dependency in the element


[View source]
def clean_problems #

Clear problems in the element

NOTE RPM 4.8 does not support this method.


[View source]
def db_offset #

Returns the value DB Offset


[View source]
def depends_on #

Get depends on


[View source]
def depends_on=(e : Element) #

Set depends on (only meaningful for removing)


[View source]
def epoch : String? #

Returns package epoch to install, update or remove

NOTE Upstream API returns a string for this function. So, this method returns a String.

If the package has no epoch, this method returns nil.


[View source]
def failed? : Bool #

Returns failed status


[View source]
def is_source? : Bool #

Returns true if source package


[View source]
def key : String? #

Returns package key to install, update or remove

NOTE This method returns a string, because crystal-rpm passes a string to 'key', and some RPM features needs that it must be a string. Since the type of key is actually void*, so you can set non-string object elsewhere crystal-rpm.


[View source]
def name : String #

Returns package name to install, update or remove


[View source]
def package_file_size : LibRPM::Loff #

Returns file size of package


[View source]
def parent : Element? #

Returns parent element


[View source]
def parent=(e : Element) #

Sets parent element


[View source]
def problems : ProblemSet? #

Returns problems belongs to this element

NOTE RPM 4.8 does not support this method.


[View source]
def release : String #

Returns package release to install, update or remove


[View source]
def to_EVR #

Returns EVR string


[View source]
def to_NEVR #

Returns NEVR string


[View source]
def to_NEVRA #

Returns NEVRA String


[View source]
def to_unsafe : RPM::LibRPM::TransactionElement #

Returns pointer to rpmte to deal with librpm C API directly


[View source]
def type : ElementType #

Returns type of element


[View source]
def version : String #

Returns package version to install, update or remove


[View source]