rpm
5.4.10
|
#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"
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. | |
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. | |
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. | |
static int | _debug = 0 |
Definition in file rpmts-rb.c.
#define _RPMTS_INTERNAL |
Definition at line 17 of file rpmts-rb.c.
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 |
Definition at line 229 of file rpmts-rb.c.
References rpmts_mi(), and rpmts_parse_spec().
Referenced by Init_rpmts().
|
static |
Definition at line 302 of file rpmts-rb.c.
References rpmts_debug_get(), rpmts_debug_set(), rpmts_NVRA_get(), rpmts_rootdir_get(), rpmts_rootdir_set(), rpmts_vsflags_get(), and rpmts_vsflags_set().
Referenced by Init_rpmts().
|
static |
|
static |
|
static |
Definition at line 316 of file rpmts-rb.c.
References _debug, and rpmtsFree().
Referenced by rpmts_new().
|
static |
Definition at line 77 of file rpmts-rb.c.
References RPMDBI_PACKAGES, rpmrb_NewMi(), and rpmts_ptr().
Referenced by initMethods().
|
static |
Definition at line 324 of file rpmts-rb.c.
References _debug, rpmts_free(), rpmtsCreate(), and rpmtsSetRootDir().
Referenced by Init_rpmts().
|
static |
Definition at line 296 of file rpmts-rb.c.
References rpmtsLoadNVRA().
Referenced by initProperties().
|
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
specfile | The path to the spec file, must be a String |
rootURL | Root path |
recursing | Whether to parse recursively or not |
passphrase | Passphrase for signing |
cookie | Cookie string in the built RPM file |
anyarch | Disables the check for valid architectures |
force | FIXME: Dunno, must be true or false |
verify | Enables checking for all source files and automated downloading |
Definition at line 123 of file rpmts-rb.c.
References parseSpec(), rpm_rb_raise(), rpmts_ptr(), rpmtsSpec(), and spec_wrap().
Referenced by initMethods().
|
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 |
Definition at line 254 of file rpmts-rb.c.
References _debug, rpmts_ptr(), and rpmtsRootDir().
Referenced by initProperties().
|
static |
Definition at line 264 of file rpmts-rb.c.
References _debug, rpmts_ptr(), rpmtsRootDir(), and rpmtsSetRootDir().
Referenced by initProperties().
|
static |
Definition at line 275 of file rpmts-rb.c.
References _debug, rpmts_ptr(), and rpmtsVSFlags().
Referenced by initProperties().
|
static |
Definition at line 285 of file rpmts-rb.c.
References _debug, rpmts_ptr(), rpmtsSetVSFlags(), and rpmtsVSFlags().
Referenced by initProperties().
|
static |
Definition at line 45 of file rpmts-rb.c.
References _debug, argvCount(), argvFree(), rpmdbMireApply(), RPMMIRE_STRCMP, RPMTAG_NVRA, rpmts_ptr(), rpmtsGetRdb(), and rpmtsOpenDB().
Referenced by rpmts_NVRA_get().
|
static |
Definition at line 29 of file rpmts-rb.c.
Referenced by Init_rpmts(), rpmts_debug_get(), rpmts_debug_set(), rpmts_free(), rpmts_new(), rpmts_rootdir_get(), rpmts_rootdir_set(), rpmts_vsflags_get(), rpmts_vsflags_set(), and rpmtsLoadNVRA().
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().