#include "system.h"
#include <rpmio_internal.h>
#include <rpmbuild.h>
#include "buildio.h"
#include "misc.h"
#include "signature.h"
#include "rpmlead.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | RPMPKGVERSION_MIN 30004 |
#define | RPMPKGVERSION_MAX 40003 |
Functions | |
int | genSourceRpmName (Spec spec) |
int | cpio_doio (FD_t fdo, Header h, CSA_t csa, const char *fmodeMacro) |
int | cpio_copy (FD_t fdo, CSA_t csa) |
StringBuf | addFileToTagAux (Spec spec, const char *file, StringBuf sb) |
int | addFileToTag (Spec spec, const char *file, Header h, int tag) |
int | addFileToArrayTag (Spec spec, const char *file, Header h, int tag) |
int | processScriptFiles (Spec spec, Package pkg) |
int | readRPM (const char *fileName, Spec *specp, struct rpmlead *lead, Header *sigs, CSA_t csa) |
Read rpm package components from file. More... | |
int | rpmLeadVersion (void) |
int | writeRPM (Header *hdrp, const char *fileName, int type, CSA_t csa, char *passPhrase, const char **cookie) |
Write rpm package to file. More... | |
int | packageBinaries (Spec spec) |
int | packageSources (Spec spec) |
Variables | |
int | _noDirTokens |
unsigned char | header_magic [8] |
int | rpmpkg_version = -1 |
int_32 | copyTags [] |
Definition in file pack.c.
|
Definition at line 342 of file pack.c. Referenced by rpmLeadVersion. |
|
Definition at line 341 of file pack.c. Referenced by rpmLeadVersion. |
|
Definition at line 178 of file pack.c. References addFileToTagAux, freeStringBuf, getStringBuf, headerAddOrAppendEntry, newStringBuf, and RPM_STRING_ARRAY_TYPE. Referenced by processScriptFiles. |
|
Definition at line 155 of file pack.c. References addFileToTagAux, appendLineStringBuf, freeStringBuf, getStringBuf, headerAddEntry, headerRemoveEntry, HGE_t, newStringBuf, and RPM_STRING_TYPE. Referenced by processScriptFiles. |
|
Definition at line 120 of file pack.c. References _, _free, appendStringBuf, expandMacros, Fclose, fdGetFp, Ferror, Fopen, freeStringBuf, and rpmGetPath. Referenced by addFileToArrayTag, and addFileToTag. |
|
Definition at line 96 of file pack.c. References _, Ferror, Fread, Fstrerror, and Fwrite. Referenced by writeRPM. |
|
Definition at line 48 of file pack.c. References _, _free, Fclose, fdDup, Fdopen, Fflush, Fileno, rpmExpand, rpmtransCreateSet, rpmtransFree, TFI_t, and xstrdup. Referenced by writeRPM. |
|
Definition at line 29 of file pack.c. References headerNVR, and xstrdup. Referenced by packageBinaries, and packageSources. |
|
Definition at line 196 of file pack.c. References _, addFileToArrayTag, addFileToTag, TriggerFileEntry::fileName, headerAddOrAppendEntry, TriggerFileEntry::next, TriggerFileEntry::prog, RPM_STRING_ARRAY_TYPE, RPMTAG_POSTIN, RPMTAG_POSTUN, RPMTAG_PREIN, RPMTAG_PREUN, RPMTAG_TRIGGERSCRIPTPROG, RPMTAG_TRIGGERSCRIPTS, RPMTAG_VERIFYSCRIPT, and TriggerFileEntry::script. Referenced by packageBinaries. |
|
Read rpm package components from file.
Definition at line 264 of file pack.c. References _, cpioSourceArchive_s::cpioFdIn, Fclose, fdDup, Ferror, Fopen, Fread, freeSpec, Fseek, Fstrerror, PackageStruct::header, headerFree, newPackage, newSpec, SpecStruct::packages, rpmRC, RPMRC_BADMAGIC, RPMRC_BADSIZE, RPMRC_FAIL, RPMRC_OK, RPMRC_SHORTREAD, rpmReadPackageInfo, and SEEK_SET. Referenced by rewriteRPM. |
|
Definition at line 345 of file pack.c. References _noDirTokens, rpmExpandNumeric, rpmpkg_version, RPMPKGVERSION_MAX, and RPMPKGVERSION_MIN. Referenced by writeRPM. |
|
|
Definition at line 18 of file pack.c. Referenced by rpmLeadVersion. |
|
Initial value: Definition at line 658 of file pack.c. Referenced by packageBinaries. |
|
Initial value: { 0x8e, 0xad, 0xe8, 0x01, 0x00, 0x00, 0x00, 0x00 } Definition at line 337 of file pack.c. Referenced by writeRPM. |
|
Definition at line 343 of file pack.c. Referenced by rpmLeadVersion. |