diff options
| author | 2023-04-02 22:28:09 +0300 | |
|---|---|---|
| committer | 2023-04-02 22:30:53 +0300 | |
| commit | 06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5 (patch) | |
| tree | 1d8261677108400367497a1adec01135e18ad6f5 /src/install.zig | |
| parent | Actually use my zig-curl instead of zelda. (diff) | |
| download | zup-06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5.tar.gz zup-06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5.tar.xz zup-06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5.zip | |
Update to latest zig
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..2e3efab 100644 --- a/src/install.zig +++ b/src/install.zig | |||
| @@ -2,7 +2,7 @@ const libarchive = @import("libarchive"); | |||
| 2 | const curl = @import("curl"); | 2 | const curl = @import("curl"); |
| 3 | const std = @import("std"); | 3 | const std = @import("std"); |
| 4 | const xdg = @import("xdg"); | 4 | const xdg = @import("xdg"); |
| 5 | const zup = @import("zup"); | 5 | const zup = @import("root"); |
| 6 | 6 | ||
| 7 | const Allocator = std.mem.Allocator; | 7 | const Allocator = std.mem.Allocator; |
| 8 | const Config = zup.Config; | 8 | const Config = zup.Config; |
| @@ -24,7 +24,7 @@ pub fn main(comptime Result: type, config: Config, res: Result) !void { | |||
| 24 | var available = try Installation.getAvailableList(config); | 24 | var available = try Installation.getAvailableList(config); |
| 25 | defer Installation.deinitMap(allocator, &available); | 25 | defer Installation.deinitMap(allocator, &available); |
| 26 | 26 | ||
| 27 | return perform(allocator, res.positionals[0], res.args.force, available); | 27 | return perform(allocator, res.positionals[0], res.args.force != 0, available); |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | pub fn perform(allocator: Allocator, name: []const u8, force: bool, available: Installations) !void { | 30 | pub fn perform(allocator: Allocator, name: []const u8, force: bool, available: Installations) !void { |