rpm  5.4.15
Macros | Functions | Variables
rpmts-rb.c File Reference
#include "system.h"
#include "rpm-rb.h"
#include "rpmts-rb.h"
#include "rpmmi-rb.h"
#include "spec-rb.h"
#include <argv.h>
#include <mire.h>
#include <rpmdb.h>
#include <rpmts.h>
#include <rpmbuild.h>
#include <rpmrc.h>
#include "../debug.h"
Include dependency graph for rpmts-rb.c:

Go to the source code of this file.

Macros

#define _RPMTS_INTERNAL
 

Functions

static void * rpmts_ptr (VALUE s)
 Returns the RPMTS structure wrapped in a RPM::Ts ruby object. More...
 
static VALUE rpmtsLoadNVRA (VALUE s)
 
static VALUE rpmts_mi (int argc, VALUE *argv, VALUE s)
 
static VALUE rpmts_parse_spec (int argc, VALUE *argv, VALUE obj)
 Parses a spec file and returns a new RPM::Spec object to access it. More...
 
static void initMethods (VALUE klass)
 
static VALUE rpmts_debug_get (VALUE s)
 
static VALUE rpmts_debug_set (VALUE s, VALUE v)
 
static VALUE rpmts_rootdir_get (VALUE s)
 
static VALUE rpmts_rootdir_set (VALUE s, VALUE v)
 
static VALUE rpmts_vsflags_get (VALUE s)
 
static VALUE rpmts_vsflags_set (VALUE s, VALUE v)
 
static VALUE rpmts_NVRA_get (VALUE s)
 
static void initProperties (VALUE klass)
 
static void rpmts_free (rpmts ts)
 
static VALUE rpmts_new (int argc, VALUE *argv, VALUE s)
 
void Init_rpmts (void)
 

Variables

VALUE rpmtsClass
 Consitutes the RPM::Ts class, binding to RPM's TransactionSet API. More...
 
static int _debug = 0
 

Macro Definition Documentation

#define _RPMTS_INTERNAL

Definition at line 17 of file rpmts-rb.c.

Function Documentation

void Init_rpmts ( void  )

Definition at line 349 of file rpmts-rb.c.

References _debug, initMethods(), initProperties(), rpmModule, rpmts_new(), and rpmtsClass.

Referenced by Init_rpm().

static void initMethods ( VALUE  klass)
static

Definition at line 229 of file rpmts-rb.c.

References rpmts_mi(), and rpmts_parse_spec().

Referenced by Init_rpmts().

static void initProperties ( VALUE  klass)
static
static VALUE rpmts_debug_get ( VALUE  s)
static

Definition at line 238 of file rpmts-rb.c.

References _debug.

Referenced by initProperties().

static VALUE rpmts_debug_set ( VALUE  s,
VALUE  v 
)
static

Definition at line 246 of file rpmts-rb.c.

References _debug.

Referenced by initProperties().

static void rpmts_free ( rpmts  ts)
static

Definition at line 316 of file rpmts-rb.c.

References _debug, and rpmtsFree().

Referenced by rpmts_new().

static VALUE rpmts_mi ( int  argc,
VALUE *  argv,
VALUE  s 
)
static

Definition at line 77 of file rpmts-rb.c.

References RPMDBI_PACKAGES, rpmrb_NewMi(), rpmts_ptr(), and ts.

Referenced by initMethods().

static VALUE rpmts_new ( int  argc,
VALUE *  argv,
VALUE  s 
)
static

Definition at line 324 of file rpmts-rb.c.

References _debug, rpmts_free(), rpmtsCreate(), rpmtsSetRootDir(), and ts.

Referenced by Init_rpmts().

static VALUE rpmts_NVRA_get ( VALUE  s)
static

Definition at line 296 of file rpmts-rb.c.

References rpmtsLoadNVRA().

Referenced by initProperties().

static VALUE rpmts_parse_spec ( int  argc,
VALUE *  argv,
VALUE  obj 
)
static

Parses a spec file and returns a new RPM::Spec object to access it.

This method serves as a factory to parse a spec file and return a new object associated with it. It takes one mandatory argument, being the path to the spec file itself, and several optional that correspond to the method signature of the original parseSpec() function. The rootURL is taken from this generating object, however.

call-seq: RPM::Ts::parse_spec(specfile, rootURL = "/", recursing = false, passphrase = "", cookie = "", anyarch = true, force = true, verify = true) -> RPM::Spec

See also
parseSpec()
Parameters
specfileThe path to the spec file, must be a String
rootURLRoot path
recursingWhether to parse recursively or not
passphrasePassphrase for signing
cookieCookie string in the built RPM file
anyarchDisables the check for valid architectures
forceFIXME: Dunno, must be true or false
verifyEnables checking for all source files and automated downloading
Returns
The newly initialized RPM::Spec object

Definition at line 123 of file rpmts-rb.c.

References parseSpec(), rpm_rb_raise(), rpmts_ptr(), rpmtsSpec(), spec_wrap(), and ts.

Referenced by initMethods().

static void* rpmts_ptr ( VALUE  s)
static

Returns the RPMTS structure wrapped in a RPM::Ts ruby object.

Definition at line 36 of file rpmts-rb.c.

Referenced by rpmts_mi(), rpmts_parse_spec(), rpmts_rootdir_get(), rpmts_rootdir_set(), rpmts_vsflags_get(), rpmts_vsflags_set(), and rpmtsLoadNVRA().

static VALUE rpmts_rootdir_get ( VALUE  s)
static

Definition at line 254 of file rpmts-rb.c.

References _debug, rpmts_ptr(), rpmtsRootDir(), and ts.

Referenced by initProperties().

static VALUE rpmts_rootdir_set ( VALUE  s,
VALUE  v 
)
static

Definition at line 264 of file rpmts-rb.c.

References _debug, rpmts_ptr(), rpmtsRootDir(), rpmtsSetRootDir(), and ts.

Referenced by initProperties().

static VALUE rpmts_vsflags_get ( VALUE  s)
static

Definition at line 275 of file rpmts-rb.c.

References _debug, rpmts_ptr(), rpmtsVSFlags(), and ts.

Referenced by initProperties().

static VALUE rpmts_vsflags_set ( VALUE  s,
VALUE  v 
)
static

Definition at line 285 of file rpmts-rb.c.

References _debug, rpmts_ptr(), rpmtsSetVSFlags(), rpmtsVSFlags(), and ts.

Referenced by initProperties().

static VALUE rpmtsLoadNVRA ( VALUE  s)
static

Variable Documentation

int _debug = 0
static
VALUE rpmtsClass

Consitutes the RPM::Ts class, binding to RPM's TransactionSet API.

Definition at line 25 of file rpmts-rb.c.

Referenced by Init_rpmts().