#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.
Macro Definition Documentation
#define _RPMRUBY_INTERNAL |
Definition at line 6 of file trb.c.
Typedef Documentation
Function Documentation
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 171 of file trb.c.
References _debug, _loglvl, _rpmruby_debug, _rpmts_debug, _test, argvCount(), rpmcliFini(), rpmcliInit(), rpmrbLoadClasses(), rpmrbLoadFile(), and RPMRC_OK.
static void rpmrbLoadClasses |
( |
void |
| ) |
|
|
static |
Definition at line 102 of file trb.c.
References _debug, _free(), _loglvl, _rpmrubyI, alloca(), rpmrbClassTable_s::init, rpmrbClassTable_s::ix, rpmrbClassTable_s::name, nclassTable, rpmExpand(), rpmGetPath(), rpmrbLoadFile(), rpmrubyRun(), and Stat().
Referenced by main().
static rpmRC rpmrbLoadFile |
( |
rpmruby |
rb, |
|
|
const char * |
pre, |
|
|
const char * |
fn |
|
) |
| |
|
static |
Variable Documentation
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:
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
}
Definition at line 159 of file trb.c.
const char tscripts[] = "./tscripts/" |
|
static |
Definition at line 62 of file trb.c.