Skip to content

Commit

Permalink
Exclude .signature.p7s from nupkg file count (#10418)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellahathaway authored Nov 7, 2024
1 parent dfd8d91 commit 3269845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/verify-nupkgs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function Verify-Nuget-Packages {
$packageKey = $packageBaseName.Replace([string]".$version", [string]"")
Write-Host "Verifying package '$packageBaseName'."

$actualNumOfFiles = (Get-ChildItem -Recurse -File -Path $unzipNugetPackageDir).Count
$actualNumOfFiles = (Get-ChildItem -Recurse -File -Path $unzipNugetPackageDir | Where-Object { $_.Name -ne '.signature.p7s' }).Count
if (-not $expectedNumOfFiles.ContainsKey($packageKey)) {
$errors += "Package '$packageKey' is not present in file expectedNumOfFiles table. Is that package known?"
continue
Expand Down

0 comments on commit 3269845

Please sign in to comment.