#include "system.h"
#include <rpmio.h>
#include <argv.h>
#include <rpmruby.h>
#include "rpm-rb.h"
#include "rpmds-rb.h"
#include "rpmfi-rb.h"
#include "rpmhdr-rb.h"
#include "rpmmc-rb.h"
#include "rpmmi-rb.h"
#include "rpmps-rb.h"
#include "rpmte-rb.h"
#include "rpmts-rb.h"
#include <rpmcli.h>
#include "debug.h"
Go to the source code of this file.
#define _RPMRUBY_INTERNAL |
Definition at line 6 of file trb.c.
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 171 of file trb.c.
References _debug, _loglvl, _rpmruby_debug, _rpmts_debug, _test, ac, argvCount(), av, exit, fn, NULL, optCon, poptContext, rc, ret, rpmrbLoadClasses(), rpmrbLoadFile(), and RPMRC_OK.
Definition at line 102 of file trb.c.
References _debug, _free(), _loglvl, _rpmrubyI, alloca(), fn, i, rpmrbClassTable_s::init, rpmrbClassTable_s::ix, ix, memset(), rpmrbClassTable_s::name, nclassTable, NULL, result, rpmExpand(), rpmGetPath(), rpmrbLoadFile(), rpmrubyRun(), sprintf(), Stat(), and void.
Referenced by main().
static rpmRC rpmrbLoadFile |
( |
rpmruby |
rb, |
|
|
const char * |
pre, |
|
|
const char * |
fn |
|
) |
| |
|
static |
Initial value:= "\
def ack(cmd, expected)\n\
begin\n\
actual = eval(cmd)\n\
rescue\n\
print(\"NACK: ack(\"+cmd.to_s+\")\tcaught '\"+\"#{$!}\"+\"'\n\")\n\
return\n\
end\n\
if (actual != expected && expected != nil)\n\
print(\"NACK: ack(\"+cmd.to_s+\")\tgot '\"+actual.to_s+\"' not '\"+expected.to_s+\"'\n\")\n\
elsif ($loglvl)\n\
print(\" ack(\"+cmd.to_s+\")\tgot '\"+actual.to_s+\"'\n\")\n\
end\n\
end\n\
"
Definition at line 65 of file trb.c.
Initial value:= {
}
void Init_rpm(void)
Defines the "RPM" Ruby module and makes it known to the Interpreter.
Definition at line 46 of file trb.c.
struct poptOption optionsTable[] |
|
static |
Initial value:= {
{
"debug",
'd', POPT_ARG_VAL, &
_debug, -1,
NULL, NULL },
{
"test",
't', POPT_ARG_VAL, &
_test, -1,
NULL, NULL },
"Common options for all rpm executables:" ,
NULL },
POPT_AUTOHELP
POPT_TABLEEND
}
struct poptOption rpmcliAllPoptTable[]
Popt option table for options shared by all modes and executables.
Definition at line 159 of file trb.c.
const char tscripts[] = "./tscripts/" |
|
static |
Definition at line 62 of file trb.c.