From 3b3baf375be63acfd293b1b47a5f49aab4b06a70 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Tue, 15 Nov 2022 02:37:38 +0200 Subject: Replace my zig-curl with zelda --- src/install.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/install.zig') diff --git a/src/install.zig b/src/install.zig index 27db4bb..47b804c 100644 --- a/src/install.zig +++ b/src/install.zig @@ -1,7 +1,7 @@ const libarchive = @import("libarchive"); -const curl = @import("curl"); const std = @import("std"); const xdg = @import("xdg"); +const zelda = @import("zelda"); const zup = @import("zup"); const Allocator = std.mem.Allocator; @@ -70,7 +70,7 @@ pub fn perform(allocator: Allocator, name: []const u8, force: bool, available: I } std.log.info("Downloading to /tmp/{s}...", .{filename}); - try curl.easyDownloadToFile(&tmpfile, installation.url.?); + try zup.http.downloadToFile(allocator, &tmpfile, installation.url.?); std.log.info("Extracting...", .{}); var archive = try ArchiveRead.init(); -- cgit v1.2.3