Skip to content

Commit

Permalink
(GH-959) Fix: Licensed feed cannot be disabled
Browse files Browse the repository at this point in the history
Allow the licensed feed to be found, even if it is disabled, so that
the source doesn't attempt to create a new one. Note the comments
mention that it should allow the user to disable the source, but the
code was not respecting that option.
  • Loading branch information
ferventcoder committed Sep 13, 2016
1 parent bcb34b5 commit ff7269e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private static void add_or_remove_licensed_source(ChocolateyLicense license, Con
{
// do not enable or disable the source, in case the user has disabled it
var addOrUpdate = license.IsValid;
var sources = configFileSettings.Sources.Where(s => !s.Disabled).or_empty_list_if_null().ToList();
var sources = configFileSettings.Sources.or_empty_list_if_null().ToList();

var configSource = new ConfigFileSourceSetting
{
Expand Down

0 comments on commit ff7269e

Please sign in to comment.