Skip to content

Commit

Permalink
chocolatey-visualstudio.extension: verify manifest checksum during do…
Browse files Browse the repository at this point in the history
…wnload, if known

GitHub-Issue: GH-7 GH-8 GH-10 GH-26
  • Loading branch information
jberezanski committed May 15, 2018
1 parent be34835 commit f11a149
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ function Get-VSComponentManifest
return $null
}

# TODO: pass -Checksum and -ChecksumType
$catalogManifest = Get-VSManifest -Description 'catalog manifest' -Url $url -LayoutFileName 'Catalog.json' -LayoutPath $layoutPath
$catalogManifest = Get-VSManifest -Description 'catalog manifest' -Url $url -Checksum $checksum -ChecksumType $checksumType -LayoutFileName 'Catalog.json' -LayoutPath $layoutPath

return $catalogManifest
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ function Get-VSManifest
(
[Parameter(Mandatory = $true)] [string] $Description,
[Parameter(Mandatory = $true)] [string] $Url,
[string] $Checksum,
[string] $ChecksumType,
[string] $LayoutFileName,
[string] $LayoutPath
)
Expand Down Expand Up @@ -52,6 +54,8 @@ function Get-VSManifest
packageName = $Description
fileFullPath = $localFilePath
url = $Url
checksum = $Checksum
checksumType = $ChecksumType
}

Set-StrictMode -Off
Expand Down

0 comments on commit f11a149

Please sign in to comment.