diff --git a/src/chocolatey/infrastructure.app/services/NugetService.cs b/src/chocolatey/infrastructure.app/services/NugetService.cs index ea7f171255..8a6054dc02 100644 --- a/src/chocolatey/infrastructure.app/services/NugetService.cs +++ b/src/chocolatey/infrastructure.app/services/NugetService.cs @@ -1347,7 +1347,7 @@ public virtual ConcurrentDictionary Upgrade(ChocolateyCon if (!config.UpgradeCommand.IgnorePinned) { - RemovePinnedSourceDependencies(sourcePackageDependencyInfos, allLocalPackages); + removedSources.AddRange(RemovePinnedSourceDependencies(sourcePackageDependencyInfos, allLocalPackages)); } if (version != null || removedSources.Count == 0)