From: Michael Tremer Date: Tue, 5 Oct 2021 12:19:23 +0000 (+0000) Subject: downloader: Ignore if we could not read the mirrorlist X-Git-Tag: 0.9.28~909 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92cfe6aa930c2dd3b75f33fa45bc93f0421ba535;p=pakfire.git downloader: Ignore if we could not read the mirrorlist Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/downloader.c b/src/libpakfire/downloader.c index 63964a636..b378926ec 100644 --- a/src/libpakfire/downloader.c +++ b/src/libpakfire/downloader.c @@ -1091,6 +1091,10 @@ int pakfire_mirrorlist_read(struct pakfire_mirrorlist* ml, const char* path) { struct json_object* json = pakfire_json_parse_from_file(ml->pakfire, path); if (!json) { + // Ignore if path does not exist + if (errno == ENOENT) + return 0; + ERROR(ml->pakfire, "Could not parse mirrorlist from %s: %m\n", path); return 1; }