]> git.ipfire.org Git - pakfire.git/commitdiff
dist: Drop our own source mirror
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 2 Oct 2023 10:25:52 +0000 (10:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 2 Oct 2023 10:25:52 +0000 (10:25 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/dist.c

index 2ca637389ae930daeabdab59bc17c401ad81305f..05d7afc46368d0128b42003556733b0efd75833f 100644 (file)
@@ -39,9 +39,6 @@
 #include <pakfire/string.h>
 #include <pakfire/util.h>
 
-// XXX for now
-#define BASEURL "https://source.ipfire.org/source-3.x/"
-
 #define PAKFIRE_MACROS_DIR                             "/usr/lib/pakfire/macros"
 #define PAKFIRE_MACROS_GLOB_PATTERN            PAKFIRE_MACROS_DIR "/*.macro"
 
@@ -285,7 +282,7 @@ static int pakfire_dist_add_source(struct pakfire* pakfire, struct pakfire_packa
 
        // Download the file if it does not exist in the cache
        if (access(cache_path, R_OK) != 0) {
-               r = pakfire_downloader_retrieve(downloader, BASEURL, mirrorlist,
+               r = pakfire_downloader_retrieve(downloader, NULL, mirrorlist,
                        NULL, filename, cache_path, 0, NULL, 0, 0);
                if (r)
                        return r;