Skip to content

Commit e2a5084

Browse files
committed
NuGetPackageDownloader: Only verify signing on windows
1 parent 4e9565d commit e2a5084

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Cli/dotnet/NugetPackageDownloader/NuGetPackageDownloader.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public NuGetPackageDownloader(
6565
_restoreActionConfig = restoreActionConfig ?? new RestoreActionConfig();
6666
_retryTimer = timer;
6767
_sourceRepositories = new();
68-
_verifySignatures = verifySignatures;
68+
_verifySignatures = OperatingSystem.IsWindows() && verifySignatures; // TODO: Check
6969

7070
_cacheSettings = new SourceCacheContext
7171
{
@@ -131,7 +131,6 @@ public async Task<string> DownloadPackageAsync(PackageId packageId,
131131
}
132132

133133
await VerifySigning(nupkgPath, repository);
134-
135134
return nupkgPath;
136135
}
137136

0 commit comments

Comments
 (0)