char buf[BUFSIZ];
xx = snprintf(buf, BUFSIZ, "%s(%s-%s-%s)", sln, n, v, r);
if (rpmluaRunScript(lua, script, buf) == -1) {
- void *ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_SCRIPT_ERROR,
- stag, 1);
+ void * ptr;
+ ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_SCRIPT_ERROR, stag, 1);
rc = RPMRC_FAIL;
}
}
psm->oh = headerFree(psm->oh);
psm->pkgURL = _free(psm->pkgURL);
psm->rpmio_flags = _free(psm->rpmio_flags);
- psm->failedFile = _free(psm->failedFile);
+ /*
+ * XXX: funny games with fsm internal state, see changesets
+ * 7340:77828be0ce85 and 4062:02b0c237b675
+ */
+ psm->failedFile = _constfree(psm->failedFile);
fi->fgroup = hfd(fi->fgroup, RPM_FORCEFREE_TYPE);
fi->fuser = hfd(fi->fuser, RPM_FORCEFREE_TYPE);