diff --git a/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs b/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs index a566ea866f..413e204221 100644 --- a/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs +++ b/src/chocolatey/infrastructure.app/builders/ConfigurationBuilder.cs @@ -73,7 +73,7 @@ private static void set_file_configuration(ChocolateyConfiguration config, IFile var configFileSettings = xmlService.deserialize(globalConfigPath); var sources = new StringBuilder(); - foreach (var source in configFileSettings.Sources.or_empty_list_if_null()) + foreach (var source in configFileSettings.Sources.Where(s => !s.Disabled).or_empty_list_if_null()) { sources.AppendFormat("{0};", source.Value); }