rpmsenseFlags sense; /*!< One of RPMSENSE_TRIGGER{PREIN,IN,UN,POSTUN}. */
int countCorrection; /*!< 0 if installing, -1 if removing. */
int chrootDone; /*!< Was chroot(2) done by pkgStage? */
- int unorderedSuccessor; /*!< Can the PSM be run asynchronously? */
rpmCallbackType what; /*!< Callback type. */
rpm_loff_t amount; /*!< Callback amount. */
rpm_loff_t total; /*!< Callback total. */
psm->sq.reaper = 1;
- rpmlog(RPMLOG_DEBUG, "%s: %s %ssynchronous scriptlet start\n",
- psm->stepName, sname, (psm->unorderedSuccessor ? "a" : ""));
+ rpmlog(RPMLOG_DEBUG, "%s: %s scriptlet start\n", psm->stepName, sname);
if (argvCount(*argvp) == 0) {
argvAdd(argvp, "/bin/sh");
}
-
/* Try new style prefixes first, then old. Otherwise there are none.. */
if (!headerGet(h, RPMTAG_INSTPREFIXES, &prefixes, HEADERGET_DEFAULT)) {
headerGet(h, RPMTAG_INSTALLPREFIX, &prefixes, HEADERGET_DEFAULT);
return NULL;
}
-void rpmpsmSetAsync(rpmpsm psm, int async)
-{
- assert(psm != NULL);
- psm->unorderedSuccessor = async;
-}
-
rpmRC rpmpsmScriptStage(rpmpsm psm, rpmTag scriptTag, rpmTag progTag)
{
assert(psm != NULL);
RPM_GNUC_INTERNAL
rpmRC rpmpsmScriptStage(rpmpsm psm, rpmTag scriptTag, rpmTag progTag);
-RPM_GNUC_INTERNAL
-void rpmpsmSetAsync(rpmpsm psm, int async);
-
#ifdef __cplusplus
}
#endif
return ovsflags;
}
-int rpmtsUnorderedSuccessors(rpmts ts, int first)
-{
- int unorderedSuccessors = 0;
- if (ts != NULL) {
- unorderedSuccessors = ts->unorderedSuccessors;
- if (first >= 0)
- ts->unorderedSuccessors = first;
- }
- return unorderedSuccessors;
-}
-
const char * rpmtsRootDir(rpmts ts)
{
const char * rootDir = NULL;
rpmVSFlags rpmtsSetVSFlags(rpmts ts, rpmVSFlags vsflags);
/** \ingroup rpmts
- * Set index of 1st element of successors.
- * @param ts transaction set
- * @param first new index of 1st element of successors
- * @return previous value
- */
-int rpmtsUnorderedSuccessors(rpmts ts, int first);
-
-/** \ingroup rpmts
* Get transaction rootDir, i.e. path to chroot(2).
* @param ts transaction set
* @return transaction rootDir
rpmte * order; /*!< Packages sorted by dependencies. */
int orderCount; /*!< No. of transaction elements. */
int orderAlloced; /*!< No. of allocated transaction elements. */
- int unorderedSuccessors; /*!< Index of 1st element of successors. */
int ntrees; /*!< No. of dependency trees. */
int maxDepth; /*!< Maximum depth of dependency tree(s). */
if (rpmteOpen(p, ts, 1)) {
rpmpsm psm = NULL;
pkgStage stage = PSM_UNKNOWN;
- int async = (rpmtsiOc(pi) >= rpmtsUnorderedSuccessors(ts, -1)) ?
- 1 : 0;
switch (tetype) {
case TR_ADDED:
break;
}
psm = rpmpsmNew(ts, p);
- rpmpsmSetAsync(psm, async);
-
(void) rpmswEnter(rpmtsOp(ts, op), 0);
failed = rpmpsmStage(psm, stage);
(void) rpmswExit(rpmtsOp(ts, op), 0);