]> git.ipfire.org Git - pakfire.git/commitdiff
downloader: Ignore if we could not read the mirrorlist
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Oct 2021 12:19:23 +0000 (12:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Oct 2021 12:19:23 +0000 (12:19 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/downloader.c

index 63964a636cd1bb697e9f0a356c6dcf77b00051a4..b378926ecc0517b09db552725ea2c0180eee4729 100644 (file)
@@ -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;
        }