#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. | |
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. | |
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 360 of file pack.c. Referenced by rpmLeadVersion(). |
|
Definition at line 359 of file pack.c. Referenced by rpmLeadVersion(). |
|
Definition at line 187 of file pack.c. References addFileToTagAux(), freeStringBuf(), getStringBuf(), Header, headerAddOrAppendEntry(), newStringBuf(), RPM_STRING_ARRAY_TYPE, Spec, and StringBuf. Referenced by processScriptFiles(). |
|
Definition at line 162 of file pack.c. References addFileToTagAux(), appendLineStringBuf, freeStringBuf(), getStringBuf(), Header, headerAddEntry(), headerRemoveEntry(), HGE_t, newStringBuf(), RPM_STRING_TYPE, Spec, and StringBuf. Referenced by processScriptFiles(). |
|
Definition at line 123 of file pack.c. References _, _free(), appendStringBuf, SpecStruct::buildSubdir, expandMacros(), Fclose(), FD_t, fdGetFp(), Ferror(), Fopen(), freeStringBuf(), SpecStruct::macros, RPMERR_BADSPEC, rpmError, rpmGetPath(), Spec, and StringBuf. Referenced by addFileToArrayTag(), and addFileToTag(). |
|
Definition at line 98 of file pack.c. References _, cpioSourceArchive_s::cpioArchiveSize, cpioSourceArchive_s::cpioFdIn, CSA_t, FD_t, Ferror(), Fread(), Fstrerror(), Fwrite(), RPMERR_CPIO, and rpmError. Referenced by writeRPM(). |
|
Definition at line 48 of file pack.c. References _, _free(), cpioSourceArchive_s::cpioArchiveSize, cpioSourceArchive_s::cpioList, cpioStrerror(), CSA_t, Fclose(), FD_t, fdDup(), Fdopen(), Fflush(), Fileno(), transactionFileInfo_s::fsm, FSM_PKGBUILD, fsmSetup(), fsmTeardown(), Header, rpmdb, RPMERR_CPIO, rpmError, rpmExpand(), rpmTransactionSet, rpmtransCreateSet(), rpmtransFree(), TFI_t, and xstrdup(). Referenced by writeRPM(). |
|
Definition at line 29 of file pack.c. References PackageStruct::header, headerNVR(), SpecStruct::noSource, SpecStruct::packages, SpecStruct::sourceRpmName, Spec, and xstrdup(). Referenced by packageBinaries(), and packageSources(). |
|
|
Read rpm package components from file.
Definition at line 277 of file pack.c. References _, cpioSourceArchive_s::cpioFdIn, CSA_t, Fclose(), FD_t, fdDup(), Ferror(), Fopen(), Fread(), freeSpec(), Fseek(), Fstrerror(), PackageStruct::header, Header, headerFree(), newPackage(), newSpec(), SpecStruct::packages, RPMERR_BADMAGIC, RPMERR_FSEEK, rpmError, rpmRC, RPMRC_BADMAGIC, RPMRC_BADSIZE, RPMRC_FAIL, RPMRC_OK, RPMRC_SHORTREAD, rpmReadPackageInfo(), SEEK_SET, and Spec. Referenced by rewriteRPM(). |
|
Definition at line 364 of file pack.c. References _noDirTokens, rpmExpandNumeric(), rpmpkg_version, RPMPKGVERSION_MAX, and RPMPKGVERSION_MIN. Referenced by writeRPM(). |
|
|
Initial value: Definition at line 682 of file pack.c. Referenced by packageBinaries(). |
|
Initial value: { 0x8e, 0xad, 0xe8, 0x01, 0x00, 0x00, 0x00, 0x00 } Definition at line 355 of file pack.c. Referenced by writeRPM(). |
|
Definition at line 362 of file pack.c. Referenced by rpmLeadVersion(). |