@@ -220,6 +220,7 @@ fn update_zig_installation(alloc: Allocator, cp: CommonPaths, version_possible:
220220 versions = @constCast (&[1 ][]const u8 {v });
221221 } else versions = try installed_versions (alloc , cp );
222222
223+ var updated_now = std .ArrayList ([]const u8 ).init (alloc );
223224 var already_update = std .ArrayList ([]const u8 ).init (alloc );
224225 var client = Client { .allocator = alloc };
225226 defer client .deinit ();
@@ -262,6 +263,7 @@ fn update_zig_installation(alloc: Allocator, cp: CommonPaths, version_possible:
262263 }
263264 }
264265 if (to_update ) {
266+ try updated_now .append (v );
265267 try install .install_release (alloc , & client , releases , & rel , cp );
266268 } else {
267269 try already_update .append (v );
@@ -270,9 +272,11 @@ fn update_zig_installation(alloc: Allocator, cp: CommonPaths, version_possible:
270272 try install .install_release (alloc , & client , releases , & rel , cp );
271273 }
272274 }
273- if (already_update .items .len > 0 ) std .debug .print ("\n " , .{});
274-
275+ std .debug .print ("\n " , .{});
276+ for (updated_now .items ) | v | {
277+ std .debug .print ("\t {s: <6} : Updated\n " , .{v });
278+ }
275279 for (already_update .items ) | v | {
276- std .debug .print ("\t {s: <6} : Up to date\n " , .{v });
280+ std .debug .print ("\t {s: <6} : Already Up to date\n " , .{v });
277281 }
278282}
0 commit comments