lib/package.c -
#include 'system.h'
#include <netinet/in.h>
#include 'rpmlib.h'
#include 'misc.h'
#include 'rpmlead.h'
#include 'signature.h'
#include 'debug.h'
#define alloca_strdup(_s) strcpy(alloca(strlen(_s)+1), (_s))
void headerMergeLegacySigs (Header h, const Header sig)
Header headerRegenSigHeader (const Header h)
rpmRC readPackageHeaders (FD_t fd, struct rpmlead *leadPtr, Header *sigs, Header *hdrPtr)
Retrieve package components from file handle.
rpmRC rpmReadPackageInfo (FD_t fd, Header *sigp, Header *hdrp)
Return package signatures and header from file handle.
rpmRC rpmReadPackageHeader (FD_t fd, Header *hdrp, int *isSource, int *major, int *minor)
Return package header and lead info from file handle.
Definition at line 16 of file package.c.
Retrieve package components from file handle.
Parameters:
Returns: rpmRC return code
Definition at line 140 of file package.c.
References _, alloca_strdup, compressFilelist(), Fileno(), HEADER_MAGIC_NO, HEADER_MAGIC_YES, headerAddEntry(), headerFree(), headerGetEntry(), headerIsEntry(), headerRead(), headerRemoveEntry(), int_32, rpmlead::magic, rpmlead::major, providePackageNVR(), readLead(), RPM_INT32_TYPE, RPM_STRING_ARRAY_TYPE, RPMERR_NEWPACKAGE, rpmError, rpmFreeSignature(), RPMLEAD_MAGIC0, RPMLEAD_MAGIC1, RPMLEAD_MAGIC2, RPMLEAD_MAGIC3, RPMLEAD_SOURCE, rpmRC, RPMRC_BADMAGIC, RPMRC_FAIL, RPMRC_OK, rpmReadSignature(), RPMTAG_DEFAULTPREFIX, RPMTAG_FILEGIDS, RPMTAG_FILEGROUPNAME, RPMTAG_FILEUIDS, RPMTAG_FILEUSERNAME, RPMTAG_PREFIXES, RPMTAG_SOURCEPACKAGE, rpmlead::signature_type, stripTrailingChar(), and rpmlead::type.
Referenced by rpmReadPackageHeader(), and rpmReadPackageInfo().
Return package header and lead info from file handle.
Parameters:
Return values:
Returns: rpmRC return code
Definition at line 261 of file package.c.
References headerMergeLegacySigs(), major, rpmlead::major, minor, rpmlead::minor, readPackageHeaders(), rpmFreeSignature(), RPMLEAD_SOURCE, rpmRC, RPMRC_OK, and rpmlead::type.
Referenced by IDTXglob(), main(), rpmInstall(), rpmInstallSourcePackage(), rpmQueryVerify(), and rpmRunTransactions().
Return package signatures and header from file handle.
Deprecated: Signature tags are appended to header in rpm-4.0.2.
Todo: Eliminate.
Parameters:
Return values:
Returns: rpmRC return code
Definition at line 249 of file package.c.
References headerMergeLegacySigs(), readPackageHeaders(), rpmRC, and RPMRC_OK.
Generated automatically by Doxygen for rpm from the source code.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |