Skip to content

Commit 9d14add

Browse files
committed
Revert "(#173) Do not pass --ignore-pinned to choco install"
This reverts commit 8cc2f9c.
1 parent 8cc2f9c commit 9d14add

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

chocolatey/plugins/modules/win_chocolatey.ps1

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ if ($state -in @("downgrade", "latest", "upgrade", "present", "reinstalled")) {
255255
Force = $force
256256
IgnoreChecksums = $ignore_checksums
257257
IgnoreDependencies = $ignore_dependencies
258+
IgnorePinned = $ignore_pinned
258259
InstallArgs = $install_args
259260
OverrideArgs = $override_args
260261
PackageParams = $package_params
@@ -289,11 +290,6 @@ if ($state -in @("downgrade", "latest", "upgrade", "present", "reinstalled")) {
289290
$installedPackages = ($packageInfo.GetEnumerator() | Where-Object { $null -ne $_.Value }).Key
290291

291292
if ($null -ne $installedPackages) {
292-
# --ignore-pinned only applied to choco upgrade and so this is being
293-
# added to the common parameters here to avoid an error if it passed
294-
# through to choco install.
295-
$commonParams.Add('IgnorePinned', $ignore_pinned)
296-
297293
Update-ChocolateyPackage -Package $installedPackages @commonParams
298294
}
299295
}

0 commit comments

Comments
 (0)