From: Michael Tremer Date: Sat, 15 Mar 2025 12:01:25 +0000 (+0000) Subject: python: Send the progress title in the start callback X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=150cbe71d240b3fc1190f51436bb9beda2189c27;p=pakfire.git python: Send the progress title in the start callback Signed-off-by: Michael Tremer --- 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;