Skip to content

Commit

Permalink
(#508) Enable download progress in NuGet
Browse files Browse the repository at this point in the history
This enables the download progress message output from
NuGet. If any other downloads of .nupkg files are added,
then a similar line should be added before the download
to enable the download progress
  • Loading branch information
TheCakeIsNaOH committed Jan 12, 2023
1 parent 737b58c commit 1c25625
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chocolatey/infrastructure.app/services/NugetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,8 @@ Version was specified as '{0}'. It is possible that version

_fileSystem.delete_file(pathResolver.GetInstalledPackageFilePath(packageDependencyInfo));

ChocolateyProgressInfo.ShouldDisplayDownloadProgress = config.Features.ShowDownloadProgress;

using (var downloadResult = downloadResource.GetDownloadResourceResultAsync(
packageDependencyInfo,
new PackageDownloadContext(sourceCacheContext),
Expand Down Expand Up @@ -1354,6 +1356,8 @@ public virtual ConcurrentDictionary<string, PackageResult> upgrade_run(Chocolate

_fileSystem.delete_file(pathResolver.GetInstalledPackageFilePath(packageDependencyInfo));

ChocolateyProgressInfo.ShouldDisplayDownloadProgress = config.Features.ShowDownloadProgress;

using (var downloadResult = downloadResource.GetDownloadResourceResultAsync(
packageDependencyInfo,
new PackageDownloadContext(sourceCacheContext),
Expand Down

0 comments on commit 1c25625

Please sign in to comment.