#include "system.h"
#include <rpmlib.h>
#include <rpmmacro.h>
#include <rpmurl.h>
#include "cpio.h"
#include "install.h"
#include "depends.h"
#include "misc.h"
#include "debug.h"
Go to the source code of this file.
Compounds | |
struct | callbackInfo |
struct | fileInfo |
struct | fileMemory |
struct | tagMacro |
RPMTS | |
int | rpmVersionCompare (Header first, Header second) |
Compare headers to determine which header is "newer". More... | |
int | rpmInstallSourcePackage (const char * rootDir, FD_t fd, const char ** specFile, rpmCallbackFunction notify, rpmCallbackData notifyData, char ** cookie) |
Install source package. More... | |
Functions | |
int | rpmInstallLoadMacros (Header h) |
Define per-header macros. More... | |
struct fileMemory* | newFileMemory (void) |
Create memory used to access header. More... | |
void | freeFileMemory ( struct fileMemory *fileMem) |
Destroy memory used to access header. More... | |
int | assembleFileList (Header h, struct fileMemory ** memPtr, int * fileCountPtr, struct fileInfo ** filesPtr, int stripPrefixLength, enum fileActions * actions) |
Build file information array. More... | |
void | setFileOwners (Header h, struct fileInfo * files, int fileCount) |
Localize user/group id's. More... | |
int | mergeFiles (Header h, Header newH, enum fileActions * actions) |
Copy file data from h to newH. More... | |
int | markReplacedFiles (rpmdb rpmdb, const struct sharedFileInfo * replList) |
Mark files in database shared with current package as "replaced". More... | |
void | callback (struct cpioCallbackInfo * cpioInfo, void * data) |
int | installArchive (FD_t fd, struct fileInfo * files, int fileCount, rpmCallbackFunction notify, rpmCallbackData notifyData, const void * pkgKey, Header h, const char ** specFile, int archiveSize) |
Setup payload map and install payload archive. More... | |
int | installSources (Header h, const char * rootDir, FD_t fd, const char ** specFilePtr, rpmCallbackFunction notify, rpmCallbackData notifyData) |
const char* const | fileActionString (enum fileActions a) |
Return formatted string representation of file disposition. More... | |
int | installBinaryPackage (const rpmTransactionSet ts, FD_t fd, Header h, const void * pkgKey, enum fileActions * actions, struct sharedFileInfo * sharedList) |
Install binary package (from transaction set). More... | |
Variables | |
struct tagMacro | tagMacros [] |
Macros to be defined from per-header tag values. |
Definition in file install.c.
|
Build file information array.
Definition at line 141 of file install.c. Referenced by installBinaryPackage(), and installSources(). |
|
|
|
Return formatted string representation of file disposition.
Definition at line 904 of file install.c. Referenced by assembleFileList(), and removeBinaryPackage(). |
|
Destroy memory used to access header.
Definition at line 121 of file install.c. Referenced by installBinaryPackage(), and installSources(). |
|
Setup payload map and install payload archive.
Definition at line 561 of file install.c. Referenced by installBinaryPackage(), and installSources(). |
|
Install binary package (from transaction set).
Definition at line 956 of file install.c. Referenced by rpmRunTransactions(). |
|
Definition at line 681 of file install.c. Referenced by rpmInstallSourcePackage(). |
|
Mark files in database shared with current package as "replaced".
Definition at line 462 of file install.c. Referenced by installBinaryPackage(). |
|
Copy file data from h to newH.
Definition at line 283 of file install.c. Referenced by installBinaryPackage(). |
|
Create memory used to access header.
|
|
Define per-header macros.
Definition at line 77 of file install.c. Referenced by rpmInstallSourcePackage(). |
|
Install source package.
Definition at line 922 of file install.c. Referenced by rpmInstall(), and rpmInstallSource(). |
|
Compare headers to determine which header is "newer".
Definition at line 868 of file install.c. Referenced by ensureOlder(), pkgCompareVer(), rpmInstall(), rpmtransAddPackage(), and versionCompare(). |
|
Localize user/group id's.
Definition at line 203 of file install.c. Referenced by installBinaryPackage(). |
|
Macros to be defined from per-header tag values.
|