struct RPM::Transaction::Element
- RPM::Transaction::Element
- Struct
- Value
- Object
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.crrpm/transaction_element.cr
Constructors
Instance Method Summary
-
#arch : String
Returns package architecture to install, update or remove
-
#clean_dependency_set
Clear dependency in the element
-
#clean_problems
Clear problems in the element
-
#db_offset
Returns the value DB Offset
-
#depends_on
Get depends on
-
#depends_on=(e : Element)
Set depends on (only meaningful for removing)
-
#epoch : String?
Returns package epoch to install, update or remove
-
#failed? : Bool
Returns failed status
-
#is_source? : Bool
Returns true if source package
-
#key : String?
Returns package key to install, update or remove
-
#name : String
Returns package name to install, update or remove
-
#package_file_size : LibRPM::Loff
Returns file size of package
-
#parent : Element?
Returns parent element
-
#parent=(e : Element)
Sets parent element
-
#problems : ProblemSet?
Returns problems belongs to this element
-
#release : String
Returns package release to install, update or remove
-
#to_EVR
Returns EVR string
-
#to_NEVR
Returns NEVR string
-
#to_NEVRA
Returns NEVRA String
-
#to_unsafe : RPM::LibRPM::TransactionElement
Returns pointer to
rpmte
to deal with librpm C API directly -
#type : ElementType
Returns type of element
-
#version : String
Returns package version to install, update or remove
Constructor Detail
Instance Method Detail
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
.
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.
Returns problems belongs to this element
NOTE RPM 4.8 does not support this method.
Returns pointer to rpmte
to deal with librpm C API directly