]> git.ipfire.org Git - pakfire.git/commitdiff
repos: Disable using mirror lists
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Nov 2022 16:24:20 +0000 (16:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Nov 2022 16:24:20 +0000 (16:24 +0000)
This doesn't work and I have no time to debug this now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/repo.c

index 2486fb71cdbc849a69892d4b309a87ad2bba3227..f8597e9c282e9c4a1df268412ac485b134f8b509 100644 (file)
@@ -122,15 +122,19 @@ static int pakfire_repo_retrieve(
        if (r)
                return r;
 
+#if 0
        // Fetch mirrorlist
        struct pakfire_mirrorlist* mirrorlist = pakfire_repo_get_mirrorlist(repo);
+#endif
 
        // Retrieve the database file
-       r = pakfire_downloader_retrieve(downloader, repo->appdata->baseurl, mirrorlist,
+       r = pakfire_downloader_retrieve(downloader, repo->appdata->baseurl, NULL,
                title, url, path, md, expected_digest, expected_digest_length, flags);
 
+#if 0
        if (mirrorlist)
                pakfire_mirrorlist_unref(mirrorlist);
+#endif
        pakfire_downloader_unref(downloader);
 
        return r;