From 50ea910701fd137b91db9ade80fb7970f72fd0c0 Mon Sep 17 00:00:00 2001 From: Thomas Ardal Date: Wed, 22 Nov 2023 11:32:51 +0100 Subject: [PATCH] Show warning for skipped sources --- src/NuPU/UpdateCommand.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/NuPU/UpdateCommand.cs b/src/NuPU/UpdateCommand.cs index b764844..d2014fa 100644 --- a/src/NuPU/UpdateCommand.cs +++ b/src/NuPU/UpdateCommand.cs @@ -181,13 +181,17 @@ public override async Task ExecuteAsync(CommandContext context, UpdateComma catch { } } + if (showUpToDate) AnsiConsole.MarkupLine(UpToDate); + // If we had any unauthenticated sources we remove them to avoid requesting them for the next package. foreach (var sourceToDelete in sourcesToDelete) { - if (enabledSources.Contains(sourceToDelete)) enabledSources.Remove(sourceToDelete); + if (enabledSources.Contains(sourceToDelete)) + { + AnsiConsole.MarkupLine($"[yellow]Unauthenticated source '{sourceToDelete.Name}'. Skipping further requests on this source.[/]"); + enabledSources.Remove(sourceToDelete); + } } - - if (showUpToDate) AnsiConsole.MarkupLine(UpToDate); } }