Skip to content

Commit

Permalink
(GH-1134) ensure GetPackageManager w/older licensed
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Mar 2, 2017
1 parent f3ee367 commit dd8b731
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/chocolatey/infrastructure.app/nuget/NugetCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ public static IPackageRepository GetRemoteRepository(ChocolateyConfiguration con
return repository;
}

public static IPackageManager GetPackageManager(ChocolateyConfiguration configuration, ILogger nugetLogger, Action<PackageOperationEventArgs> installSuccessAction, Action<PackageOperationEventArgs> uninstallSuccessAction, bool addUninstallHandler)
{
return GetPackageManager(configuration,nugetLogger,new PackageDownloader(), installSuccessAction, uninstallSuccessAction, addUninstallHandler);
}

public static IPackageManager GetPackageManager(ChocolateyConfiguration configuration, ILogger nugetLogger, IPackageDownloader packageDownloader, Action<PackageOperationEventArgs> installSuccessAction, Action<PackageOperationEventArgs> uninstallSuccessAction, bool addUninstallHandler)
{
IFileSystem nugetPackagesFileSystem = GetNuGetFileSystem(configuration, nugetLogger);
Expand Down

0 comments on commit dd8b731

Please sign in to comment.