From 07379e27c0383ed2b5b3c8e8794de80719cee6d3 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 11 Jan 2012 11:06:16 +0200 Subject: Issue package install/erase progress callbacks on justdb operation too - Large --justdb operations can take considerable amount of time as well, getting progress bars for it is nice even if hardly necessary... --- lib/psm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/psm.c') diff --git a/lib/psm.c b/lib/psm.c index 7b3767e23..000f7b58e 100644 --- a/lib/psm.c +++ b/lib/psm.c @@ -823,13 +823,11 @@ static rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage) if (psm->goal == PKG_INSTALL) { int fsmrc = 0; - if (rpmtsFlags(ts) & RPMTRANS_FLAG_JUSTDB) break; - rpmpsmNotify(psm, RPMCALLBACK_INST_START, 0); /* make sure first progress call gets made */ rpmpsmNotify(psm, RPMCALLBACK_INST_PROGRESS, 0); - if (rpmfiFC(fi) > 0) { + if (rpmfiFC(fi) > 0 && !(rpmtsFlags(ts) & RPMTRANS_FLAG_JUSTDB)) { FD_t payload = rpmtePayload(psm->te); if (payload == NULL) { rc = RPMRC_FAIL; @@ -866,7 +864,7 @@ static rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage) rpmpsmNotify(psm, RPMCALLBACK_INST_PROGRESS, 0); /* XXX should't we log errors from here? */ - if (rpmfiFC(fi) > 0) { + if (rpmfiFC(fi) > 0 && !(rpmtsFlags(ts) & RPMTRANS_FLAG_JUSTDB)) { rc = runFsm(psm, NULL) ? RPMRC_FAIL : RPMRC_OK; } -- cgit v1.2.3