|
rpm
5.4.4
|
#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.
Data Structures | |
| struct | rpmrbClassTable_s |
Defines | |
| #define | _RPMRUBY_INTERNAL |
Typedefs | |
| typedef struct rpmrbClassTable_s * | rpmrbClassTable |
Functions | |
| static rpmRC | rpmrbLoadFile (rpmruby rb, const char *pre, const char *fn) |
| static void | rpmrbLoadClasses (void) |
| int | main (int argc, char *argv[]) |
Variables | |
| static int | _debug = 0 |
| static int | _loglvl = 0 |
| static int | _test = 1 |
| static struct rpmrbClassTable_s | classTable [] |
| static size_t | nclassTable = sizeof(classTable) / sizeof(classTable[0]) |
| static const char | tscripts [] = "./tscripts/" |
| static const char * | _acknack |
| static struct poptOption | optionsTable [] |
| typedef struct rpmrbClassTable_s * rpmrbClassTable |
| 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().
Definition at line 82 of file trb.c.
References _debug, _free(), rpmExpand(), and rpmrubyRun().
Referenced by main(), and rpmrbLoadClasses().
const char* _acknack [static] |
"\ 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\ "
int _debug = 0 [static] |
Definition at line 30 of file trb.c.
Referenced by main(), rpmrbLoadClasses(), and rpmrbLoadFile().
int _loglvl = 0 [static] |
Definition at line 33 of file trb.c.
Referenced by main(), and rpmrbLoadClasses().
struct rpmrbClassTable_s classTable[] [static] |
{
{ "Ps", Init_rpmps, 9 },
{ "Mc", Init_rpmmc, 8 },
{ "Te", Init_rpmte, 7 },
{ "Fi", Init_rpmfi, 6 },
{ "Ds", Init_rpmds, 5 },
{ "Hdr", Init_rpmhdr, 4 },
{ "Mi", Init_rpmmi, 3 },
{ "Ts", Init_rpmts, 2 },
{ "Rpm", Init_rpm, 1 },
}
size_t nclassTable = sizeof(classTable) / sizeof(classTable[0]) [static] |
Definition at line 59 of file trb.c.
Referenced by rpmrbLoadClasses().
struct poptOption optionsTable[] [static] |
{
{ "debug", 'd', POPT_ARG_VAL, &_debug, -1, NULL, NULL },
{ "test", 't', POPT_ARG_VAL, &_test, -1, NULL, NULL },
{ NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmcliAllPoptTable, 0,
N_("Common options for all rpm executables:"), NULL },
POPT_AUTOHELP
POPT_TABLEEND
}
1.7.5.1