From: Michael Tremer Date: Tue, 17 Oct 2023 09:44:25 +0000 (+0000) Subject: cli: upload: list: Connect to the build service X-Git-Tag: 0.9.30~1466 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa46298c55a99d60c52545c126545c8a16ebd1f5;p=pakfire.git cli: upload: list: Connect to the build service Signed-off-by: Michael Tremer --- diff --git a/src/cli/lib/upload_list.c b/src/cli/lib/upload_list.c index ffb3b22f0..cfcd9753e 100644 --- a/src/cli/lib/upload_list.c +++ b/src/cli/lib/upload_list.c @@ -18,6 +18,7 @@ # # #############################################################################*/ +#include #include #include "command.h" @@ -26,16 +27,26 @@ static const char* doc = "Lists all uploads"; int cli_upload_list(void* data, int argc, char* argv[]) { - struct pakfire_ctx* ctx = data; + struct pakfire_buildservice* service = NULL; int r; + struct pakfire_ctx* ctx = data; + // Parse the command line r = cli_parse(NULL, NULL, NULL, doc, NULL, argc, argv, NULL); if (r) goto ERROR; + // Connect to the build service + r = pakfire_buildservice_create(&service, ctx); + if (r) + goto ERROR; + // XXX TODO ERROR: + if (service) + pakfire_buildservice_unref(service); + return r; }