From: Michael Tremer Date: Sun, 29 Jun 2025 12:59:59 +0000 (+0000) Subject: oci: Require the context X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e5a2cec3a5a6858d304243ab63abe4eb24dcec1;p=pakfire.git oci: Require the context Signed-off-by: Michael Tremer --- diff --git a/src/cli/lib/image_create.c b/src/cli/lib/image_create.c index b3fd2c34..852429eb 100644 --- a/src/cli/lib/image_create.c +++ b/src/cli/lib/image_create.c @@ -97,7 +97,7 @@ int cli_image_create(void* data, int argc, char* argv[]) { goto ERROR; // Create the image - r = pakfire_oci_mkimage(root, f); + r = pakfire_oci_mkimage(global_args->ctx, root, f); if (r < 0) goto ERROR; diff --git a/src/pakfire/oci.c b/src/pakfire/oci.c index 678f7cc0..4355425a 100644 --- a/src/pakfire/oci.c +++ b/src/pakfire/oci.c @@ -555,7 +555,7 @@ ERROR: return r; } -int pakfire_oci_mkimage(pakfire_root* root, FILE* f) { +int pakfire_oci_mkimage(pakfire_ctx* ctx, pakfire_root* root, FILE* f) { struct pakfire_oci_writer writer = { .ctx = pakfire_root_get_ctx(root), .root = root, diff --git a/src/pakfire/oci.h b/src/pakfire/oci.h index 98b2c528..3b927479 100644 --- a/src/pakfire/oci.h +++ b/src/pakfire/oci.h @@ -23,8 +23,9 @@ #include +#include #include -int pakfire_oci_mkimage(pakfire_root* root, FILE* f); +int pakfire_oci_mkimage(pakfire_ctx* ctx, pakfire_root* root, FILE* f); #endif /* PAKFIRE_OCI_H */