aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs8
1 files changed, 8 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index c8d4364..0569dfa 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1253,12 +1253,14 @@ static void *rpmRunTransactions_callback(__attribute__((unused)) const void *h,
callback = td->callback_uninst;
callback_type = "uninst";
break;
+#ifdef RPM4_14_2
case RPMCALLBACK_VERIFY_START:
case RPMCALLBACK_VERIFY_PROGRESS:
case RPMCALLBACK_VERIFY_STOP:
callback = td->callback_verify;
callback_type = "verify";
break;
+#endif
case RPMCALLBACK_INST_START:
case RPMCALLBACK_INST_PROGRESS:
case RPMCALLBACK_INST_STOP:
@@ -1291,14 +1293,18 @@ static void *rpmRunTransactions_callback(__attribute__((unused)) const void *h,
case RPMCALLBACK_INST_START:
case RPMCALLBACK_TRANS_START:
case RPMCALLBACK_UNINST_START:
+#ifdef RPM4_14_2
case RPMCALLBACK_VERIFY_START:
+#endif
callback_subtype = "start";
gettimeofday(&tprev, NULL);
break;
case RPMCALLBACK_INST_PROGRESS:
case RPMCALLBACK_TRANS_PROGRESS:
case RPMCALLBACK_UNINST_PROGRESS:
+#ifdef RPM4_14_2
case RPMCALLBACK_VERIFY_PROGRESS:
+#endif
callback_subtype = "progress";
gettimeofday(&tcurr, NULL);
delta = 1000000 * (tcurr.tv_sec - tprev.tv_sec) + (tcurr.tv_usec - tprev.tv_usec);
@@ -1310,7 +1316,9 @@ static void *rpmRunTransactions_callback(__attribute__((unused)) const void *h,
case RPMCALLBACK_INST_STOP:
case RPMCALLBACK_TRANS_STOP:
case RPMCALLBACK_UNINST_STOP:
+#ifdef RPM4_14_2
case RPMCALLBACK_VERIFY_STOP:
+#endif
callback_subtype = "stop";
break;
case RPMCALLBACK_CPIO_ERROR: