#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 |
| Private data for cpio callback. More... | |
| struct | fileInfo |
| struct | fileMemory |
| Keeps track of memory allocated while accessing header tags. More... | |
| struct | tagMacro |
| Macros to be defined from per-header tag values. More... | |
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.
|
|
|
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 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.
|
|
|
Compare headers to determine which header is "newer".
|
|
|
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.
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001