]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Move repomd.json into the root
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 Feb 2025 15:17:28 +0000 (15:17 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 2 Feb 2025 15:17:28 +0000 (15:17 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/repo.c

index 0c0c56f78450795111a78531cf7d8f3caffd440a..019a2d1367e52436e6aa0b96c0553907109b8ae8 100644 (file)
@@ -2005,7 +2005,7 @@ static int pakfire_repo_metadata_add_file(struct pakfire_repo* self,
        }
 
        // Make the filename
-       r = pakfire_path_basename(filename, path);
+       r = pakfire_path_relative(filename, pakfire_repo_get_path(self), path);
        if (r < 0)
                goto ERROR;
 
@@ -2197,7 +2197,7 @@ int pakfire_repo_write_metadata(struct pakfire_repo* self, struct pakfire_key* k
                goto ERROR;
 
        // Make path to repomd.json
-       r = pakfire_repo_path(self, repomd_path, "%s", "repodata/repomd.json");
+       r = pakfire_repo_path(self, repomd_path, "%s", "repomd.json");
        if (r < 0)
                goto ERROR;