]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Ignore any unsupported metadata
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Feb 2025 15:51:20 +0000 (15:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 Feb 2025 15:51:20 +0000 (15:51 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/repo.c

index f71ed71ac95373c851c40a97f95f480f796b3a5d..e8a8284ddd587e40c2be9c789a4de71642418da6 100644 (file)
@@ -1080,8 +1080,9 @@ static int pakfire_repo_read_metadata(struct pakfire_repo* repo, const char* pat
        r = pakfire_repo_parse_repomd(repo, &repo->appdata->repomd, json);
        if (r < 0) {
                switch (-r) {
-                       // Ignore if the file on disk was malformed
+                       // Ignore if the file on disk was malformed or is not supported
                        case EBADMSG:
+                       case ENOTSUP:
                                r = 0;
                                goto ERROR;