diff options
Diffstat (limited to 'src/install.zig')
| -rw-r--r-- | src/install.zig | 4 |
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 @@ | |||
| 1 | const libarchive = @import("libarchive"); | 1 | const libarchive = @import("libarchive"); |
| 2 | const curl = @import("curl"); | ||
| 3 | const std = @import("std"); | 2 | const std = @import("std"); |
| 4 | const xdg = @import("xdg"); | 3 | const xdg = @import("xdg"); |
| 4 | const zelda = @import("zelda"); | ||
| 5 | const zup = @import("zup"); | 5 | const zup = @import("zup"); |
| 6 | 6 | ||
| 7 | const Allocator = std.mem.Allocator; | 7 | const 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(); |