]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Make the write metadata function public
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 16:10:36 +0000 (16:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 Jan 2025 16:10:36 +0000 (16:10 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/repo.c
src/pakfire/repo.h

index d0f8cad5dd7ed31fe81d022e17d8b2a4db1a16bf..d143bd5762710cc6d823ea6405badc7035bbcdfe 100644 (file)
@@ -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;
index 3df76b3b316ad1580bc0c6616d812868d319ecd4..7b4e7996bcb1843ff9481d7becedd06cc47a8f46 100644 (file)
@@ -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);