diff --git a/src/chocolatey/infrastructure.app/services/CygwinService.cs b/src/chocolatey/infrastructure.app/services/CygwinService.cs index 252d24cc0d..66595c44c1 100644 --- a/src/chocolatey/infrastructure.app/services/CygwinService.cs +++ b/src/chocolatey/infrastructure.app/services/CygwinService.cs @@ -212,6 +212,11 @@ public ConcurrentDictionary Install(ChocolateyConfigurati public ConcurrentDictionary Install(ChocolateyConfiguration config, Action continueAction, Action beforeModifyAction) { + if (config.PackageNames.is_equal_to(ApplicationParameters.AllPackages)) + { + throw new NotImplementedException("All keyword is not available for alternate sources"); + } + var args = BuildArgs(config, _installArguments); var packageResults = new ConcurrentDictionary(StringComparer.InvariantCultureIgnoreCase); diff --git a/src/chocolatey/infrastructure.app/services/PythonService.cs b/src/chocolatey/infrastructure.app/services/PythonService.cs index 718bbccae3..813a40a153 100644 --- a/src/chocolatey/infrastructure.app/services/PythonService.cs +++ b/src/chocolatey/infrastructure.app/services/PythonService.cs @@ -338,6 +338,11 @@ public ConcurrentDictionary Install(ChocolateyConfigurati public ConcurrentDictionary Install(ChocolateyConfiguration config, Action continueAction, Action beforeModifyAction) { + if (config.PackageNames.is_equal_to(ApplicationParameters.AllPackages)) + { + throw new NotImplementedException("All keyword is not available for alternate sources"); + } + EnsureExecutablePathSet(); var args = BuildArguments(config, _installArguments); var packageResults = new ConcurrentDictionary(StringComparer.InvariantCultureIgnoreCase); diff --git a/src/chocolatey/infrastructure.app/services/RubyGemsService.cs b/src/chocolatey/infrastructure.app/services/RubyGemsService.cs index 6ffb618ef9..c1cb738383 100644 --- a/src/chocolatey/infrastructure.app/services/RubyGemsService.cs +++ b/src/chocolatey/infrastructure.app/services/RubyGemsService.cs @@ -200,6 +200,11 @@ public ConcurrentDictionary Install(ChocolateyConfigurati public ConcurrentDictionary Install(ChocolateyConfiguration config, Action continueAction, Action beforeModifyAction) { + if (config.PackageNames.is_equal_to(ApplicationParameters.AllPackages)) + { + throw new NotImplementedException("All keyword is not available for alternate sources"); + } + var packageResults = new ConcurrentDictionary(StringComparer.InvariantCultureIgnoreCase); var args = ExternalCommandArgsBuilder.BuildArguments(config, _installArguments); diff --git a/src/chocolatey/infrastructure.app/services/WindowsFeatureService.cs b/src/chocolatey/infrastructure.app/services/WindowsFeatureService.cs index 3c44a8d8d2..63787cb662 100644 --- a/src/chocolatey/infrastructure.app/services/WindowsFeatureService.cs +++ b/src/chocolatey/infrastructure.app/services/WindowsFeatureService.cs @@ -270,6 +270,11 @@ public ConcurrentDictionary Install(ChocolateyConfigurati public ConcurrentDictionary Install(ChocolateyConfiguration config, Action continueAction, Action beforeModifyAction) { + if (config.PackageNames.is_equal_to(ApplicationParameters.AllPackages)) + { + throw new NotImplementedException("All keyword is not available for alternate sources"); + } + EnsureExecutablePathSet(); var args = BuildArguments(config, _installArguments); var packageResults = new ConcurrentDictionary(StringComparer.InvariantCultureIgnoreCase);