static PyObject* Pakfire_build(PakfireObject* self, PyObject* args, PyObject* kwargs) {
char* kwlist[] = {
"path",
+ "target",
"build_id",
"disable_snapshot",
"disable_ccache",
};
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;
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);
}