#include "system.h"
#include <rpmlib.h>
#include <rpmmacro.h>
#include <rpmurl.h>
#include "psm.h"
#include "rpmlead.h"
#include "signature.h"
#include "misc.h"
#include "rpmdb.h"
#include "debug.h"
Go to the source code of this file.
Data Structures | |
| 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... | |
| rpmRC | rpmInstallSourcePackage (const char *rootDir, FD_t fd, const char **specFilePtr, rpmCallbackFunction notify, rpmCallbackData notifyData, char **cookie) |
| Install source package. More... | |
Functions | |
| void | loadFi (Header h, TFI_t fi) |
| Load data from header into transaction file element info. More... | |
| void | freeFi (TFI_t fi) |
| Destroy transaction element file info. More... | |
| const char* const | fiTypeString (TFI_t fi) |
| Return formatted string representation of package disposition. More... | |
| int | rpmInstallLoadMacros (TFI_t fi, Header h) |
| Define per-header macros. More... | |
| int | mergeFiles (TFI_t fi, Header h, Header newH) |
| Copy file data from h to newH. More... | |
| int | markReplacedFiles (PSM_t psm) |
| Mark files in database shared with this package as "replaced". More... | |
| rpmRC | chkdir (const char *dpath, const char *dname) |
| Create directory if it does not exist, make sure path is writable. More... | |
| const char* const | tag2sln (int tag) |
| Return scriptlet name from tag. More... | |
| int | runScript (PSM_t psm, Header h, const char *sln, int progArgc, const char **progArgv, const char *script, int arg1, int arg2) |
| Run scriptlet with args. More... | |
| rpmRC | runInstScript (PSM_t psm) |
| Retrieve and run scriptlet from header. More... | |
| int | handleOneTrigger (PSM_t psm, Header sourceH, Header triggeredH, int arg2, unsigned char *triggersAlreadyRun) |
| int | runTriggers (PSM_t psm) |
| Run trigger scripts in the database that are fired by this header. More... | |
| int | runImmedTriggers (PSM_t psm) |
| Run triggers from this header that are fired by headers in the database. More... | |
| const char* const | pkgStageString (pkgStage a) |
| int | psmStage (PSM_t psm, pkgStage stage) |
| Package state machine driver. More... | |
Variables | |
| int | _fsm_debug |
| const char* | chroot_prefix |
| struct tagMacro | tagMacros [] |
| Macros to be defined from per-header tag values. More... | |
| char* | SCRIPT_PATH |
Definition in file psm.c.
|
|
Create directory if it does not exist, make sure path is writable.
Definition at line 572 of file psm.c. Referenced by rpmInstallSourcePackage().
|
|
|
Return formatted string representation of package disposition.
|
|
|
Destroy transaction element file info.
|
|
|
Definition at line 1077 of file psm.c. Referenced by runImmedTriggers(), and runTriggers().
|
|
|
Load data from header into transaction file element info.
|
|
|
Mark files in database shared with this package as "replaced".
Definition at line 493 of file psm.c. Referenced by psmStage().
|
|
|
Copy file data from h to newH.
Definition at line 312 of file psm.c. Referenced by psmStage().
|
|
|
Definition at line 1272 of file psm.c. Referenced by psmStage().
|
|
|
Package state machine driver.
|
|
|
Define per-header macros.
Definition at line 266 of file psm.c. Referenced by rpmInstallSourcePackage().
|
|
|
Install source package.
|
|
|
Compare headers to determine which header is "newer".
|
|
|
Run triggers from this header that are fired by headers in the database.
Definition at line 1223 of file psm.c. Referenced by psmStage().
|
|
|
Retrieve and run scriptlet from header.
Definition at line 1034 of file psm.c. Referenced by psmStage().
|
|
|
Run scriptlet with args. Run a script with an interpreter. If the interpreter is not specified, /bin/sh will be used. If the interpreter is /bin/sh, then the args from the header will be ignored, passing instead arg1 and arg2.
Definition at line 819 of file psm.c. Referenced by handleOneTrigger(), and runInstScript().
|
|
|
Run trigger scripts in the database that are fired by this header.
Definition at line 1189 of file psm.c. Referenced by psmStage().
|
|
|
Return scriptlet name from tag.
Definition at line 788 of file psm.c. Referenced by psmStage(), and runInstScript().
|
|
|
Initial value:
"PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin" |
|
|
|
|
|
|
|
|
Macros to be defined from per-header tag values.
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001