Skip to content

Commit

Permalink
(chocolateyGH-10) NugetService - remove check for .config
Browse files Browse the repository at this point in the history
The work of packages.config converted to package names and options is
done in ChocolateyPackageService, so there is no need to check in
NugetService. Remove the logic branch.
  • Loading branch information
ferventcoder committed Feb 4, 2015
1 parent 108236e commit 3b2e7a9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/chocolatey/infrastructure.app/services/NugetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,6 @@ public ConcurrentDictionary<string, PackageResult> install_run(ChocolateyConfigu

foreach (string packageName in packageNames.or_empty_list_if_null())
{
if (packageName.to_lower().EndsWith(".config"))
{
//todo: determine if .config file for packages .config
//todo: determine if config file exists
}
else
{
//todo: get smarter about realizing multiple versions have been installed before and allowing that

remove_existing_rollback_directory(packageName);
Expand Down Expand Up @@ -304,7 +297,6 @@ public ConcurrentDictionary<string, PackageResult> install_run(ChocolateyConfigu
packageManager.InstallPackage(availablePackage, config.IgnoreDependencies, config.Prerelease);
//packageManager.InstallPackage(packageName, version, configuration.IgnoreDependencies, configuration.Prerelease);
}
}
}

return packageInstalls;
Expand Down

0 comments on commit 3b2e7a9

Please sign in to comment.