Skip to content

Commit

Permalink
chocolatey-visualstudio.extension: teach Get-VSComponentManifest to o…
Browse files Browse the repository at this point in the history
…perate on existing manifest

GitHub-Issue: GH-7 GH-8 GH-10 GH-26
  • Loading branch information
jberezanski committed May 15, 2018
1 parent bb77968 commit b3cbede
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ function Get-VSComponentManifest
Param
(
[Parameter(Mandatory = $true)] [hashtable] $PackageParameters,
[PSObject] $ProductReference
[PSObject] $ProductReference,
[System.Collections.IDictionary] $ChannelManifest
)

Write-Debug 'Obtaining the channel manifest'
$channelManifest = Get-VSChannelManifest -PackageParameters $PackageParameters -ProductReference $ProductReference
if ($ChannelManifest -eq $null)
{
Write-Debug 'Obtaining the channel manifest'
$ChannelManifest = Get-VSChannelManifest -PackageParameters $PackageParameters -ProductReference $ProductReference
}

Write-Debug 'Parsing the channel manifest'
$url, $checksum, $checksumType = Get-VSChannelManifestItemUrl -Manifest $channelManifest -ChannelItemType 'Manifest'
$url, $checksum, $checksumType = Get-VSChannelManifestItemUrl -Manifest $ChannelManifest -ChannelItemType 'Manifest'

if ($url -eq $null)
{
Expand Down

0 comments on commit b3cbede

Please sign in to comment.