class RPM::Problem

Overview

Stores Problem.

Direct Known Subclasses

Defined in:

rpm/problem.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.create(type, pkg_nevr, key, dir, file, alt_nevr, number) #

Create a problem with calling convention of rpmProblemCreate in RPM 4.8.x.

dir and file are simply concatenated (if both of them are not nil).

DEPRECATED Use .create with RPM 4.9 convention


[View source]
def self.create(type, pkg_nevr, key, alt_nevr, str, number) #

Create a problem with calling convention of rpmProblemCreate in RPM 4.9 or later.


[View source]
def self.for(ptr : LibRPM::Problem, **opts) #

Create a Problem instance with type indicated by given problem's type.

If given ptr is NULL, or, unsupported type, this method returns an instance of RPM::Problem.


[View source]

Instance Method Detail

def ==(other) #

Compares two problems

NOTE RPM 4.8 does not support this method.


[View source]
def alt_nevr #

[View source]
def alt_nevr? #

[View source]
def dup #
Description copied from class Reference

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.


[View source]
def finalize #

[View source]
def key #

[View source]
def number #

[View source]
def pkg_nevr #

[View source]
def pkg_nevr? #

[View source]
def str #

[View source]
def str? #

[View source]
def to_s(io) #

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

Returns pointer to rpmProblem to deal with librpm C API directly


[View source]
def type #

[View source]