From 150cbe71d240b3fc1190f51436bb9beda2189c27 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 15 Mar 2025 12:01:25 +0000 Subject: [PATCH] python: Send the progress title in the start callback Signed-off-by: Michael Tremer --- src/python/ctx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/python/ctx.c b/src/python/ctx.c index a1b3b53f..ab9a6deb 100644 --- a/src/python/ctx.c +++ b/src/python/ctx.c @@ -283,6 +283,9 @@ static int Ctx_progress_start(struct pakfire_ctx* ctx, PyObject* p = data; int r = -1; + // Fetch the title + const char* title = pakfire_progress_get_title(progress); + // Acquire the GIL PyGILState_STATE state = PyGILState_Ensure(); @@ -292,7 +295,7 @@ static int Ctx_progress_start(struct pakfire_ctx* ctx, goto ERROR; // Call it with the value - ret = PyObject_CallFunction(start, "k", value); + ret = PyObject_CallFunction(start, "sk", title, value); if (!ret) goto ERROR; -- 2.39.5