Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
// Parse the JSON object
r = pakfire_repo_parse_repomd(repo, &repo->appdata->repomd, json);
if (r < 0) {
- ERROR(repo->ctx, "Could not parse repository metadata for %s: %s\n",
- pakfire_repo_get_name(repo), strerror(-r));
- goto ERROR;
+ switch (-r) {
+ // Ignore if the file on disk was malformed
+ case EBADMSG:
+ r = 0;
+ goto ERROR;
+
+ default:
+ ERROR(repo->ctx, "Could not parse repository metadata for %s: %s\n",
+ pakfire_repo_get_name(repo), strerror(-r));
+ goto ERROR;
+ }
}
ERROR: