Fix dependency name showing twice in auto-PR title

This commit is contained in:
Davis Goodin 2018-08-13 16:57:30 -05:00
parent 15f2c0990f
commit 53e2624ecd

View file

@ -26,12 +26,12 @@ namespace Microsoft.DotNet.Scripts
List<BuildInfo> buildInfos = new List<BuildInfo>(s_config.VersionFragments.Select<KeyValuePair<string, string>, BuildInfo>(fragment =>
GetBuildInfo(fragment.Key, fragment.Value, fetchLatestReleaseFile: false)));
IEnumerable<IDependencyUpdater> updaters = GetUpdaters();
IEnumerable<IDependencyUpdater> updaters = GetUpdaters().ToArray();
var dependencyBuildInfos = buildInfos.Select(buildInfo =>
new BuildDependencyInfo(
buildInfo,
upgradeStableVersions: true,
disabledPackages: Enumerable.Empty<string>()));
disabledPackages: Enumerable.Empty<string>())).ToArray();
DependencyUpdateResults updateResults = DependencyUpdateUtils.Update(updaters, dependencyBuildInfos);
if (!onlyUpdate && updateResults.ChangesDetected())