Don't return if no volatile feeds are found.
This commit is contained in:
parent
53eb708a8b
commit
03266b4b2a
|
|
@ -10,11 +10,8 @@ use namespace="System.Xml.Linq"
|
||||||
.Select(entry => new KeyValuePair<string, string>(((string)entry.Key).Substring(prefix.Length), (string)entry.Value))
|
.Select(entry => new KeyValuePair<string, string>(((string)entry.Key).Substring(prefix.Length), (string)entry.Value))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
if (!feeds.Any())
|
if (feeds.Any())
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var nugetConfig = XDocument.Load("NuGet.config");
|
var nugetConfig = XDocument.Load("NuGet.config");
|
||||||
var packageSources = nugetConfig.Element("configuration").Element("packageSources");
|
var packageSources = nugetConfig.Element("configuration").Element("packageSources");
|
||||||
var addElements = packageSources.Elements("add").ToList();
|
var addElements = packageSources.Elements("add").ToList();
|
||||||
|
|
@ -33,4 +30,5 @@ use namespace="System.Xml.Linq"
|
||||||
|
|
||||||
nugetConfig.Save("NuGet.config");
|
nugetConfig.Save("NuGet.config");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,8 @@ use namespace="System.Xml.Linq"
|
||||||
.Select(entry => new KeyValuePair<string, string>(((string)entry.Key).Substring(prefix.Length), (string)entry.Value))
|
.Select(entry => new KeyValuePair<string, string>(((string)entry.Key).Substring(prefix.Length), (string)entry.Value))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
if (!feeds.Any())
|
if (feeds.Any())
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var nugetConfig = XDocument.Load("NuGet.config");
|
var nugetConfig = XDocument.Load("NuGet.config");
|
||||||
var packageSources = nugetConfig.Element("configuration").Element("packageSources");
|
var packageSources = nugetConfig.Element("configuration").Element("packageSources");
|
||||||
var addElements = packageSources.Elements("add").ToList();
|
var addElements = packageSources.Elements("add").ToList();
|
||||||
|
|
@ -33,4 +30,5 @@ use namespace="System.Xml.Linq"
|
||||||
|
|
||||||
nugetConfig.Save("NuGet.config");
|
nugetConfig.Save("NuGet.config");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue