-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(GH-61) Fix choco install package result #103
base: development
Are you sure you want to change the base?
Changes from 1 commit
13dc62b
c2e80c6
e3d87fb
b5e589e
f8ad82e
cfb4fad
db65157
edd29ac
2285eed
60b5c52
119a7e3
1b84d8c
5ce77a1
36cbc0f
a31199b
f918292
a765b4a
c62705e
6f99ed1
ff013ba
8d1c67f
d6c73a3
7270d0a
93afb73
7b4d50c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Copyright (c) 2017 Chocolatey Software, Inc. | ||
# Copyright (c) 2013 - 2017 Lawrence Gripper & original authors/contributors from https://github.com/chocolatey/cChoco | ||
# Copyright (c) 2013 - 2017 Lawrence Gripper & original authors/contributors from https://github.com/chocolatey/cChoco | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -240,7 +239,7 @@ function InstallPackage | |
$chocoinstallparams += " $cParams" | ||
} | ||
Write-Verbose -Message "Install command: 'choco install $pName $chocoinstallparams'" | ||
$packageInstallOuput = Invoke-ChocoLatey "install $pName $chocoinstallparams" | ||
$packageInstallOuput = Invoke-Chocolatey "install $pName $chocoinstallparams" | ||
Write-Verbose -Message "Package output $packageInstallOuput " | ||
|
||
#refresh path varaible in powershell, as choco doesn"t, to pull in git | ||
|
@@ -325,7 +324,7 @@ Function Test-LatestVersionInstalled { | |
|
||
Write-Verbose -Message "Testing if $pName can be upgraded: 'choco upgrade $pName $chocoupgradeparams'" | ||
|
||
$packageUpgradeOuput = Invoke-Chocolatey "upgrade $pName $chocoupgradeparams" | ||
$packageUpgradeOuput = Invoke-Chocolatey "choco upgrade $pName $chocoupgradeparams" | ||
$packageUpgradeOuput | ForEach-Object {Write-Verbose -Message $_} | ||
|
||
if ($packageUpgradeOuput -match "$pName.*is the latest version available based on your source") { | ||
|
@@ -396,7 +395,7 @@ Function Upgrade-Package { | |
} | ||
|
||
function Get-ChocoInstalledPackage { | ||
Return (choco list -lo -r | ConvertFrom-Csv -Header 'Name', 'Version' -Delimiter "|") | ||
(choco list -lo -r | ConvertFrom-Csv -Header 'Name', 'Version' -Delimiter "|") | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's your thinking behind running this every time rather than caching it for 60 seconds? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In some instances of DSC configuratioin 60 seconds is to long if a small package is installed, so the test will fail I will remove the Return There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See previous comment around this. |
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
choco
command shouldn't be passed to Invoke-Chocolatey.