Data Structures | |
struct | rpmQVKArguments_s |
Describe query/verify/signature command line operation. More... | |
struct | rpmBuildArguments_s |
Describe build command line request. More... | |
struct | rpmInstallArguments_s |
Describe database command line requests. More... | |
struct | rpmDatabaseArguments_s |
Describe database command line requests. More... | |
Files | |
file | rpmcli.h |
file | rpmlib.h |
In Memoriam: Steve Taylor <staylor@redhat.com> was here, now he's not. | |
Functions | |
static int | checkSpec (rpmts ts, Header h) |
Parse spec file and build package. | |
poptContext | rpmcliInit (int argc, char *const argv[], struct poptOption *optionsTable) |
Initialize most everything needed by an rpm CLI executable context. | |
void | rpmcliConfigured (void) |
Make sure that rpm configuration has been read. | |
poptContext | rpmcliFini (poptContext optCon) |
Destroy most everything needed by an rpm CLI executable context. | |
Variables | |
int | _noDirTokens |
Should version 3 packages be produced? | |
struct poptOption | rpmcliAllPoptTable [] |
Popt option table for options shared by all modes and executables. |
#define UNINSTALL_ALLMATCHES INSTALL_ALLMATCHES |
#define UNINSTALL_NODEPS INSTALL_NODEPS |
#define UNINSTALL_NONE INSTALL_NONE |
typedef struct rpmBuildArguments_s* BTA_t |
typedef struct rpmQVKArguments_s* QVA_t |
typedef enum rpmInstallFlags_e rpmInstallFlags |
Bit(s) to control rpmInstall() operation.
typedef enum rpmQueryFlags_e rpmQueryFlags |
Bit(s) to control rpmQuery() operation, stored in qva_flags.
typedef enum rpmQVSources_e rpmQVSources |
typedef enum rpmSignFlags_e rpmSignFlags |
Bit(s) to control rpmReSign() operation.
enum rpmInstallFlags_e |
Bit(s) to control rpmInstall() operation.
enum rpmQueryFlags_e |
Bit(s) to control rpmQuery() operation, stored in qva_flags.
enum rpmQVSources_e |
Query/Verify argument qualifiers.
enum rpmSignFlags_e |
Parse spec file and build package.
Definition at line 26 of file build.c.
References _, headerIsEntry(), rpmlog(), RPMLOG_ERR, rpmpsFree(), rpmpsNumProblems(), rpmpsPrint(), RPMTAG_CONFLICTNAME, RPMTAG_REQUIRENAME, rpmtsAddInstallElement(), rpmtsCheck(), rpmtsClean(), and rpmtsProblems().
Referenced by buildForTarget().
int rpmcliArgIter | ( | rpmts | ts, | |
QVA_t | qva, | |||
ARGV_const_t | argv | |||
) |
Iterate over query/verify arg list.
ts | transaction set | |
qva | parsed query/verify options | |
argv | query argument(s) (or NULL) |
void rpmcliConfigured | ( | void | ) |
Make sure that rpm configuration has been read.
Referenced by main().
poptContext rpmcliFini | ( | poptContext | optCon | ) |
Destroy most everything needed by an rpm CLI executable context.
optCon | popt context |
poptContext rpmcliInit | ( | int | argc, | |
char *const | argv[], | |||
struct poptOption * | optionsTable | |||
) |
Initialize most everything needed by an rpm CLI executable context.
argc | no. of args | |
argv | arg array | |
optionsTable | popt option table |
int rpmcliQuery | ( | rpmts | ts, | |
QVA_t | qva, | |||
ARGV_const_t | argv | |||
) |
Display query/verify information for each header in iterator.
This routine uses:
qva | parsed query/verify options | |
ts | transaction set |
int rpmcliSign | ( | rpmts | ts, | |
QVA_t | qva, | |||
ARGV_const_t | argv | |||
) |
Create/Modify/Check elements from signature header.
ts | transaction set | |
qva | mode flags and parameters | |
argv | array of arguments (NULL terminated) |
Referenced by main().
int rpmcliVerify | ( | rpmts | ts, | |
QVA_t | qva, | |||
ARGV_const_t | argv | |||
) |
void rpmDisplayQueryTags | ( | FILE * | fp | ) |
Display list of tags that can be used in --queryformat.
fp | file handle to use for display |
int rpmErase | ( | rpmts | ts, | |
struct rpmInstallArguments_s * | ia, | |||
ARGV_const_t | argv | |||
) |
Erase binary rpm package.
ts | transaction set | |
ia | control args/bits | |
argv | array of package file names (NULL terminated) |
Referenced by main().
int rpmInstall | ( | rpmts | ts, | |
struct rpmInstallArguments_s * | ia, | |||
ARGV_t | fileArgv | |||
) |
int rpmInstallSource | ( | rpmts | ts, | |
const char * | arg, | |||
char ** | specFilePtr, | |||
char ** | cookie | |||
) |
Install source rpm package.
ts | transaction set | |
arg | source rpm file name |
*specFilePtr | (installed) spec file name | |
*cookie |
Referenced by main().
Common query/verify source interface, called once for each CLI arg.
This routine uses:
qva | parsed query/verify options | |
ts | transaction set | |
arg | name of source to query/verify |
void* rpmShowProgress | ( | const void * | arg, | |
const rpmCallbackType | what, | |||
const rpm_loff_t | amount, | |||
const rpm_loff_t | total, | |||
fnpyKey | key, | |||
void * | data | |||
) |
The rpm CLI generic transaction callback handler.
arg | per-callback private data (e.g. an rpm header) | |
what | callback identifier | |
amount | per-callback progress info | |
total | per-callback progress info | |
key | opaque header key (e.g. file name or PyObject) | |
data | private data (e.g. rpmInstallInterfaceFlags) |
Display results of package query.
qva | parsed query/verify options | |
ts | transaction set | |
h | header to use for query |
Display results of package verify.
qva | parsed query/verify options | |
ts | transaction set | |
h | header to use for verify |
int _noDirTokens |
Should version 3 packages be produced?
struct rpmBuildArguments_s rpmBTArgs |
Referenced by main().
struct poptOption rpmBuildPoptTable[] |
struct poptOption rpmcliAllPoptTable[] |
Popt option table for options shared by all modes and executables.
Bit(s) from common command line options.
struct poptOption rpmDatabasePoptTable[] |
struct rpmDatabaseArguments_s rpmDBArgs |
Referenced by main().
struct rpmInstallArguments_s rpmIArgs |
Referenced by main().
struct poptOption rpmInstallPoptTable[] |
struct poptOption rpmQueryPoptTable[] |
struct rpmQVKArguments_s rpmQVKArgs |
Referenced by main().
struct poptOption rpmQVSourcePoptTable[] |
struct poptOption rpmSignPoptTable[] |
struct poptOption rpmVerifyPoptTable[] |