From 150220803d58a02bd04bde7586b03e606e0d9807 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Mon, 13 Apr 2015 11:09:39 -0500 Subject: [PATCH] (GH-186) Uninstall - no prompt for one version If there is only one version installed, uninstall should not prompt for which version to remove. It should just move forward removing that version. --- src/chocolatey/infrastructure.app/services/NugetService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chocolatey/infrastructure.app/services/NugetService.cs b/src/chocolatey/infrastructure.app/services/NugetService.cs index b39a7c54b6..a3d59068b6 100644 --- a/src/chocolatey/infrastructure.app/services/NugetService.cs +++ b/src/chocolatey/infrastructure.app/services/NugetService.cs @@ -797,7 +797,7 @@ public ConcurrentDictionary uninstall_run(ChocolateyConfi } var packageVersionsToRemove = installedPackageVersions.ToList(); - if (!config.AllVersions) + if (!config.AllVersions && installedPackageVersions.Count > 1) { if (config.PromptForConfirmation) {