diff --git a/src/chocolatey/infrastructure.app/services/NugetService.cs b/src/chocolatey/infrastructure.app/services/NugetService.cs index 5d674efaad..a76e4c593d 100644 --- a/src/chocolatey/infrastructure.app/services/NugetService.cs +++ b/src/chocolatey/infrastructure.app/services/NugetService.cs @@ -353,7 +353,7 @@ public ConcurrentDictionary upgrade_run(ChocolateyConfigu if (config.RegularOuptut) this.Log().Error(ChocolateyLoggers.Important, logMessage); continue; } - + var pkgInfo = _packageInfoService.get_package_information(installedPackage); if (pkgInfo != null && pkgInfo.IsPinned) { @@ -416,7 +416,7 @@ public ConcurrentDictionary upgrade_run(ChocolateyConfigu if (performAction) { using (packageManager.SourceRepository.StartOperation( - RepositoryOperationNames.Install, + RepositoryOperationNames.Update, packageName, version == null ? null : version.ToString())) {