In Memoriam: Steve Taylor stayl.nosp@m.or@r.nosp@m.edhat.nosp@m..com was here, now he's not.
More...
#include <popt.h>
#include <rpm/rpmio.h>
#include <rpm/header.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmds.h>
#include <rpm/rpmpgp.h>
Go to the source code of this file.
|
#define | RPM_MACHTABLE_COUNT 4 |
|
enum | rpm_machtable_e { RPM_MACHTABLE_INSTARCH = 0,
RPM_MACHTABLE_INSTOS = 1,
RPM_MACHTABLE_BUILDARCH = 2,
RPM_MACHTABLE_BUILDOS = 3
} |
| Build and install arch/os table identifiers. More...
|
|
int | rpmReadConfigFiles (const char *file, const char *target) |
| Read macro configuration file(s) for a target. More...
|
|
void | rpmGetArchInfo (const char **name, int *num) |
| Return current arch name and/or number. More...
|
|
int | rpmGetArchColor (const char *arch) |
| Return color for an arch. More...
|
|
void | rpmGetOsInfo (const char **name, int *num) |
| Return current os name and/or number. More...
|
|
int | rpmMachineScore (int type, const char *name) |
| Return arch/os score of a name. More...
|
|
int | rpmShowRC (FILE *fp) |
| Display current rpmrc (and macro) configuration. More...
|
|
void | rpmFreeRpmrc (void) |
| Destroy rpmrc arch/os compatibility tables. More...
|
|
int | rpmVersionCompare (Header first, Header second) |
| Compare headers to determine which header is "newer". More...
|
|
rpmRC | headerCheck (rpmts ts, const void *uh, size_t uc, char **msg) |
| Check header consistency, performing headerGetEntry() the hard way. More...
|
|
rpmRC | rpmReadHeader (rpmts ts, FD_t fd, Header *hdrp, char **msg) |
| Return checked and loaded header. More...
|
|
rpmRC | rpmReadPackageFile (rpmts ts, FD_t fd, const char *fn, Header *hdrp) |
| Return package header from file handle, verifying digests/signatures. More...
|
|
rpmRC | rpmInstallSourcePackage (rpmts ts, FD_t fd, char **specFilePtr, char **cookie) |
| Install source package. More...
|
|
int | rpmvercmp (const char *a, const char *b) |
| Segmented string compare for version or release strings. More...
|
|
In Memoriam: Steve Taylor stayl.nosp@m.or@r.nosp@m.edhat.nosp@m..com was here, now he's not.
Definition in file rpmlib.h.
◆ RPM_MACHTABLE_COUNT
#define RPM_MACHTABLE_COUNT 4 |
No. of arch/os tables.
Definition at line 52 of file rpmlib.h.
◆ rpmInstallSourcePackage()
rpmRC rpmInstallSourcePackage |
( |
rpmts |
ts, |
|
|
FD_t |
fd, |
|
|
char ** |
specFilePtr, |
|
|
char ** |
cookie |
|
) |
| |
Install source package.
- Parameters
-
ts | transaction set |
fd | file handle |
- Return values
-
specFilePtr | address of spec file name (or NULL) |
cookie | address of cookie pointer (or NULL) |
- Returns
- rpmRC return code
◆ rpmvercmp()
int rpmvercmp |
( |
const char * |
a, |
|
|
const char * |
b |
|
) |
| |
Segmented string compare for version or release strings.
- Parameters
-
- Returns
- +1 if a is "newer", 0 if equal, -1 if b is "newer"
◆ rpmVersionCompare()
Compare headers to determine which header is "newer".
- Parameters
-
first | 1st header |
second | 2nd header |
- Returns
- result of comparison
◆ rpmCLIMacroContext
struct rpmMacroContext_s* rpmCLIMacroContext |
◆ rpmEVR
◆ rpmFLAGS
◆ rpmGlobalMacroContext
struct rpmMacroContext_s* rpmGlobalMacroContext |
◆ rpmNAME
const char* const rpmNAME |
◆ RPMVERSION
const char* const RPMVERSION |