summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-11-26 16:08:04 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-11-27 09:25:12 +0200
commit610347de6e07e7cd4ff13cfa9467280ed5e8c175 (patch)
tree8ac65d356c15cf1ffcd7000d8b1da5a683cf11e3 /lib/psm.c
parent54b683d2f395998178b760257f1145c246f9e09f (diff)
downloadrpm-610347de6e07e7cd4ff13cfa9467280ed5e8c175.tar.gz
rpm-610347de6e07e7cd4ff13cfa9467280ed5e8c175.tar.bz2
rpm-610347de6e07e7cd4ff13cfa9467280ed5e8c175.zip
Pass rpmte to fsmSetup()
- fsm needs the transaction element for progress notification and element type anyway
Diffstat (limited to 'lib/psm.c')
-rw-r--r--lib/psm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/psm.c b/lib/psm.c
index 0adb5a798..072f93e14 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -1335,7 +1335,7 @@ rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage)
break;
}
- rc = fsmSetup(rpmfiFSM(fi), FSM_PKGINSTALL, ts, fi,
+ rc = fsmSetup(rpmfiFSM(fi), FSM_PKGINSTALL, ts, psm->te, fi,
psm->cfd, NULL, &psm->failedFile);
(void) rpmswAdd(rpmtsOp(ts, RPMTS_OP_UNCOMPRESS),
fdOp(psm->cfd, FDSTAT_READ));
@@ -1393,7 +1393,7 @@ rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage)
psm->total = fc;
xx = rpmpsmNext(psm, PSM_NOTIFY);
- rc = fsmSetup(rpmfiFSM(fi), FSM_PKGERASE, ts, fi,
+ rc = fsmSetup(rpmfiFSM(fi), FSM_PKGERASE, ts, psm->te, fi,
NULL, NULL, &psm->failedFile);
xx = fsmTeardown(rpmfiFSM(fi));
@@ -1540,7 +1540,7 @@ rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage)
if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_PKGCOMMIT)) break;
if (rpmtsFlags(ts) & RPMTRANS_FLAG_APPLYONLY) break;
- rc = fsmSetup(rpmfiFSM(fi), FSM_PKGCOMMIT, ts, fi,
+ rc = fsmSetup(rpmfiFSM(fi), FSM_PKGCOMMIT, ts, psm->te, fi,
NULL, NULL, &psm->failedFile);
xx = fsmTeardown(rpmfiFSM(fi));
break;