summaryrefslogtreecommitdiff
path: root/src/install.zig
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2022-11-15 02:37:38 +0200
committerGravatar Uko Kokņevičs2022-11-15 02:37:38 +0200
commit3b3baf375be63acfd293b1b47a5f49aab4b06a70 (patch)
tree102e254f6160a9a1f28dd9a51f74e93747567505 /src/install.zig
parentUpdate clap (diff)
downloadzup-3b3baf375be63acfd293b1b47a5f49aab4b06a70.tar.gz
zup-3b3baf375be63acfd293b1b47a5f49aab4b06a70.tar.xz
zup-3b3baf375be63acfd293b1b47a5f49aab4b06a70.zip
Replace my zig-curl with zelda
Diffstat (limited to 'src/install.zig')
-rw-r--r--src/install.zig4
1 files changed, 2 insertions, 2 deletions
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 @@
1const libarchive = @import("libarchive"); 1const libarchive = @import("libarchive");
2const curl = @import("curl");
3const std = @import("std"); 2const std = @import("std");
4const xdg = @import("xdg"); 3const xdg = @import("xdg");
4const zelda = @import("zelda");
5const zup = @import("zup"); 5const zup = @import("zup");
6 6
7const Allocator = std.mem.Allocator; 7const Allocator = std.mem.Allocator;
@@ -70,7 +70,7 @@ pub fn perform(allocator: Allocator, name: []const u8, force: bool, available: I
70 } 70 }
71 71
72 std.log.info("Downloading to /tmp/{s}...", .{filename}); 72 std.log.info("Downloading to /tmp/{s}...", .{filename});
73 try curl.easyDownloadToFile(&tmpfile, installation.url.?); 73 try zup.http.downloadToFile(allocator, &tmpfile, installation.url.?);
74 74
75 std.log.info("Extracting...", .{}); 75 std.log.info("Extracting...", .{});
76 var archive = try ArchiveRead.init(); 76 var archive = try ArchiveRead.init();