From: Michael Tremer Date: Thu, 30 Jan 2025 16:10:36 +0000 (+0000) Subject: repo: Make the write metadata function public X-Git-Tag: 0.9.30~250 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8abd096819f1f663d55790ce80c97ee20319d62;p=pakfire.git repo: Make the write metadata function public Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/repo.c b/src/pakfire/repo.c index d0f8cad5..d143bd57 100644 --- a/src/pakfire/repo.c +++ b/src/pakfire/repo.c @@ -1930,7 +1930,7 @@ ERROR: return r; } -static int pakfire_repo_write_metadata(struct pakfire_repo* repo, struct pakfire_key* key) { +int pakfire_repo_write_metadata(struct pakfire_repo* repo, struct pakfire_key* key) { struct json_object* repomd = NULL; FILE* f = NULL; int r = 1; diff --git a/src/pakfire/repo.h b/src/pakfire/repo.h index 3df76b3b..7b4e7996 100644 --- a/src/pakfire/repo.h +++ b/src/pakfire/repo.h @@ -97,6 +97,8 @@ int pakfire_repo_refresh(struct pakfire_repo* repo, int force); // Compose +int pakfire_repo_write_metadata(struct pakfire_repo* repo, struct pakfire_key* key); + int pakfire_repo_compose(struct pakfire* pakfire, const char* path, struct pakfire_key* key, const char** files);