From: Michael Tremer Date: Thu, 3 Nov 2022 21:49:31 +0000 (+0000) Subject: _pakfire: Pass target for build() X-Git-Tag: 0.9.28~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=195ab60e839c960df7221091b50d161aa75ec312;p=pakfire.git _pakfire: Pass target for build() Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/pakfire.c b/src/_pakfire/pakfire.c index 6ec1ce9ce..e2f67f377 100644 --- a/src/_pakfire/pakfire.c +++ b/src/_pakfire/pakfire.c @@ -1111,6 +1111,7 @@ static PyObject* execute_return_value(int r) { static PyObject* Pakfire_build(PakfireObject* self, PyObject* args, PyObject* kwargs) { char* kwlist[] = { "path", + "target", "build_id", "disable_snapshot", "disable_ccache", @@ -1119,13 +1120,14 @@ static PyObject* Pakfire_build(PakfireObject* self, PyObject* args, PyObject* kw }; const char* path = NULL; + const char* target = NULL; const char* build_id = NULL; int disable_snapshot = 0; int disable_ccache = 0; int disable_tests = 0; - if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|zppp", kwlist, &path, &build_id, - &disable_snapshot, &disable_ccache, &disable_tests)) + if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|zzppp", kwlist, &path, &target, + &build_id, &disable_snapshot, &disable_ccache, &disable_tests)) return NULL; int flags = 0; @@ -1143,7 +1145,7 @@ static PyObject* Pakfire_build(PakfireObject* self, PyObject* args, PyObject* kw flags |= PAKFIRE_BUILD_DISABLE_TESTS; // Run build - int r = pakfire_build(self->pakfire, path, NULL, build_id, flags); + int r = pakfire_build(self->pakfire, path, target, build_id, flags); return execute_return_value(r); }