summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-01-11 11:06:16 +0200
committerPanu Matilainen <pmatilai@redhat.com>2012-01-11 12:15:48 +0200
commit07379e27c0383ed2b5b3c8e8794de80719cee6d3 (patch)
tree73dc78ed92e48b3e50b4c5b196644a377eb0bbe2 /lib/psm.c
parent9d6450bc5a647b1fb809e21098cdc26b2aee7d52 (diff)
downloadlibrpm-tizen-07379e27c0383ed2b5b3c8e8794de80719cee6d3.tar.gz
librpm-tizen-07379e27c0383ed2b5b3c8e8794de80719cee6d3.tar.bz2
librpm-tizen-07379e27c0383ed2b5b3c8e8794de80719cee6d3.zip
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...
Diffstat (limited to 'lib/psm.c')
-rw-r--r--lib/psm.c6
1 files changed, 2 insertions, 4 deletions
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;
}