summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-11-19 09:45:05 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-11-19 09:45:05 +0200
commit30fb610125d57bfdeab38a1811bf563bf264180e (patch)
tree143114b8e93441970cf2c9f5300daaed5197409f
parent140f0c8c8339524968e9ca595fabe9a28b38f49f (diff)
downloadrpm-30fb610125d57bfdeab38a1811bf563bf264180e.tar.gz
rpm-30fb610125d57bfdeab38a1811bf563bf264180e.tar.bz2
rpm-30fb610125d57bfdeab38a1811bf563bf264180e.zip
Refer to psm->te instead of fi->te in rpmpsmStage()
- transaction element is passed to psm, might as well use it
-rw-r--r--lib/psm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/psm.c b/lib/psm.c
index f3234e1f3..d96dbc297 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -1338,21 +1338,21 @@ rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage)
/* XXX Synthesize callbacks for packages with no files. */
if (rpmfiFC(fi) <= 0) {
void * ptr;
- ptr = rpmtsNotify(ts, fi->te, RPMCALLBACK_INST_START, 0, 100);
- ptr = rpmtsNotify(ts, fi->te, RPMCALLBACK_INST_PROGRESS, 100, 100);
+ ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_INST_START, 0, 100);
+ ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_INST_PROGRESS, 100, 100);
break;
}
/* Retrieve type of payload compression. */
rc = rpmpsmNext(psm, PSM_RPMIO_FLAGS);
- if (rpmteFd(fi->te) == NULL) { /* XXX can't happen */
+ if (rpmteFd(psm->te) == NULL) { /* XXX can't happen */
rc = RPMRC_FAIL;
break;
}
/* LCL: fi->fd != NULL here. */
- psm->cfd = Fdopen(fdDup(Fileno(rpmteFd(fi->te))), psm->rpmio_flags);
+ psm->cfd = Fdopen(fdDup(Fileno(rpmteFd(psm->te))), psm->rpmio_flags);
if (psm->cfd == NULL) { /* XXX can't happen */
rc = RPMRC_FAIL;
break;
@@ -1406,8 +1406,8 @@ rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage)
/* XXX Synthesize callbacks for packages with no files. */
if (rpmfiFC(fi) <= 0) {
void * ptr;
- ptr = rpmtsNotify(ts, fi->te, RPMCALLBACK_UNINST_START, 0, 100);
- ptr = rpmtsNotify(ts, fi->te, RPMCALLBACK_UNINST_STOP, 0, 100);
+ ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_UNINST_START, 0, 100);
+ ptr = rpmtsNotify(ts, psm->te, RPMCALLBACK_UNINST_STOP, 0, 100);
break;
}