Skip to content

Commit

Permalink
(GH-169) Do not resolve disabled sources
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Apr 13, 2015
1 parent 1baa1ff commit 1c9ce4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private static void set_file_configuration(ChocolateyConfiguration config, IFile

var configFileSettings = xmlService.deserialize<ConfigFileSettings>(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);
}
Expand Down

0 comments on commit 1c9ce4c

Please sign in to comment.