rpm  5.4.10
Functions | Variables
package-rb.h File Reference

Ruby access to RPM's Package struct. More...

#include "rpm-rb.h"
Include dependency graph for package-rb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void Init_Package (void)
 Creates a new RPM::Package instance.

Variables

VALUE packageClass
 RPM::Package class that represents a package during build.

Detailed Description

Ruby access to RPM's Package struct.

See Also
Package_s

Definition in file package-rb.h.

Function Documentation

void Init_Package ( void  )

Creates a new RPM::Package instance.

Called alone it does not make much sense; use it together with the factory RPM::Spec::packages.

See Also
spec_get_packages()

Definition at line 46 of file package-rb.c.

References package_get_ds(), packageClass, and rpmModule.

Referenced by Init_rpm().

Variable Documentation

VALUE packageClass

RPM::Package class that represents a package during build.

The general way of acquiring a RPM::Package class is to get it from the spec file after it has been parsed, e.g.

ts = RPM::Ts.new spec = ts.parse_spec 'foo.spec' spec.packages.each do |pkg|

...

end

See Also
Package_s

Definition at line 22 of file package-rb.c.

Referenced by Init_Package(), and spec_get_packages().